Skip to content

net_version

Returns the current network ID as a decimal string.

None.

FieldTypeDescription
resultstringThe network ID as a decimal string. "8453" for Base Mainnet, "84532" for Base Sepolia.
{
"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": 1
}
{
"jsonrpc": "2.0",
"id": 1,
"result": "8453"
}