JSON-RPCMethods
eth_chainId: parameters, returns and CU
Return the EIP-155 chain ID of the current network. See parameters, return value, CU metering and supported chains for this method.
Summary
Return the EIP-155 chain ID of the current network.
Compute Units (CU) and Pricing
CU per call
1 CU
Price per 1M calls (USD)
$0.1
Parameters
This method takes no parameters.
Returns
- Type:
QUANTITY - Description: Chain ID as a 0x-prefixed hexadecimal quantity (for example 0x1 on mainnet).
Notes
The chain ID is part of EIP-155 transaction signing and stays constant for a network.
Request Example
curl -X POST "https://dev-api.blockvectra.network/v1/robinhood_mainnet" \
-H 'Content-Type: application/json' \
-H 'x-api-key: <api_key>' \
-d '{
"jsonrpc": "2.0",
"method": "eth_chainId",
"params": [],
"id": 1
}'Supported Chains
Supported chains:
- EthereumBeta
eth_mainnet - HyperEVM
hyperevm_mainnet - Robinhood Chain
robinhood_mainnet
Related references
eth_blockNumber: parameters, returns and CU
Return the number of the latest block known to the node. See parameters, return value, CU metering and supported chains for this method.
eth_gasPrice: parameters, returns and CU
Return the node's suggested current gas price in wei. See parameters, return value, CU metering and supported chains for this method.