net_version
The net_version method returns the current network ID as a decimal string. The network ID identifies which Kaia network the node is connected to, allowing applications to verify they're interacting with the correct network.
This method is functionally similar to eth_chainId but returns a decimal string representation instead of hexadecimal, and exists primarily for legacy compatibility with older Ethereum applications and wallets. For Kaia, the network ID is 8217 for Mainnet Cypress and 1001 for Kairos testnet. Many wallets and dapps use this method to verify network connectivity and display network information to users, though modern applications typically prefer eth_chainId. The network ID is crucial for preventing replay attacks across different Kaia networks.
Parameters
This method does not require any parameters.
Return Object
field | type | description |
|---|---|---|
result | string | The current network ID as a string (e.g., '8217' for Mainnet Cypress, '1001' for Kairos testnet) |
Request Example
Response Example