JSON-RPCMethods
eth_getBlockByNumber: parameters, returns and CU
Return a block by number, optionally with full transactions. See parameters, return value, CU metering and supported chains for this method.
Summary
Return a block by its number, optionally with full transaction objects.
Compute Units (CU) and Pricing
CU per call
5 CU
Price per 1M calls (USD)
$0.5
Parameters
| Parameter | Type | Description |
|---|---|---|
blockParameter | QUANTITY|TAG | Block number or tag: latest, earliest, pending, safe or finalized. |
fullTransactions | boolean | true returns full transaction objects; false returns only the list of transaction hashes. |
Returns
- Type:
OBJECT|NULL - Description: Block object with header fields and a transaction list; null when the block is not found.
Notes
The blocks behind the latest, pending, safe and finalized tags change as the chain advances.
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_getBlockByNumber",
"params": [
"latest",
false
],
"id": 1
}'Supported Chains
Supported chains:
- EthereumBeta
eth_mainnet - HyperEVM
hyperevm_mainnet - Robinhood Chain
robinhood_mainnet
Related references
eth_getTransactionCount: parameters, returns and CU
Return the transaction count (nonce) of an address at a block. See parameters, return value, CU metering and supported chains for this method.
eth_getBlockByHash: parameters, returns and CU
Return a block by its hash, optionally with full transaction objects. See parameters, return value, CU metering and supported chains for this method.