JSON-RPCMethods
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.
Summary
Return the number of the latest block known to the node.
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: Latest block number as a 0x-prefixed hexadecimal quantity.
Notes
The result reflects the node's current head and moves as new blocks arrive; it does not imply that the block is final.
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_blockNumber",
"params": [],
"id": 1
}'Supported Chains
Supported chains:
- EthereumBeta
eth_mainnet - HyperEVM
hyperevm_mainnet - Robinhood Chain
robinhood_mainnet