Appearance
net_version
served · same as reth
Returns the network ID as a decimal string, for example "1" for mainnet.
When to use
Old tools use it to check the network. New code can use eth_chainId.
Example
bash
curl -s -X POST -H 'Content-Type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "net_version", "params": []}' \
http://127.0.0.1:8547json
{
"jsonrpc": "2.0",
"id": 1,
"method": "net_version",
"params": []
}Response
Live mainnet, 2026-10-14. Checked against reth 2.7: equal.
json
{
"jsonrpc": "2.0",
"id": 1,
"result": "1"
}Parameters
None.
Returns
The network ID as a decimal string. On Cinder, it is the chain ID.
Compared with reth
The live example above gives the same answer on Cinder and on reth 2.7.
Related methods
Schema (OpenRPC)
The official specification: net_version in ethereum/execution-apis.
Result: string
json
{
"pattern": "^[1-9][0-9]*$",
"title": "decimal unsigned integer string",
"type": "string"
}