JSON-RPCMethods
net_version: parameters, returns and CU
Return the network ID of the current network as a decimal string.
Summary
Return the network ID of the current network as a decimal string.
Compute units (CU) and pricing
CU per call
10 CU
Price per 1M calls (USD)
$1.00
Parameters
This method takes no parameters.
Returns
- Type:
string - Description: Network ID as a decimal string (for example "1" on mainnet).
Notes
The network ID and the EIP-155 chain ID are distinct concepts; they are often equal but do not have to be, and signing should use eth_chainId.
Request example
export BLOCKVECTRA_API_KEY=rgw_your_api_key
curl -X POST "https://api.blockvectra.com/v1/robinhood_mainnet" \
-H 'Content-Type: application/json' \
-H "x-api-key: $BLOCKVECTRA_API_KEY" \
-d '{
"jsonrpc": "2.0",
"method": "net_version",
"params": [],
"id": 1
}'Supported chains
Available on all 29 supported chains.
Related references
Last updated: