Skip to main content
Returns the current network ID as a decimal string.

Parameters

No parameters.

Returns

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

Example

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