JSON-RPCMethods
eth_getBlockByHash: parameters, returns and CU
Return a block by its hash, optionally with full transaction objects.
Summary
Return a block by its hash, optionally with full transaction objects.
Compute units (CU) and pricing
CU per call
10 CU
Price per 1M calls (USD)
$1.00
Parameters
| Parameter | Type | Description |
|---|---|---|
blockHash | HASH | 32-byte block hash as 0x-prefixed hex. |
fullTransactions | boolean | true returns full transaction objects; false returns only the list of transaction hashes. |
Returns
- Type:
OBJECT|NULL - Description: Block object; null when not found.
Notes
Compared with a number lookup, a hash lookup refers to a fixed block.
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": "eth_getBlockByHash",
"params": [
"<blockHash>",
false
],
"id": 1
}'Supported chains
Available on all 29 supported chains.
Related references
Last updated: