Skip to main content
Returns the network ID as a decimal string. For Base, this is the same value as the chain ID.

Parameters

No parameters.

Returns

result
string
The network ID as a decimal string (not hex). "8453" for Base Mainnet, "84532" for Base Sepolia.

Example

{
  "jsonrpc": "2.0",
  "method": "net_version",
  "params": [],
  "id": 1
}