JSON-RPCMethods
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.
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
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
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_getBlockByHash",
"params": [
"<blockHash>",
false
],
"id": 1
}'Supported Chains
Supported chains:
- EthereumBeta
eth_mainnet - HyperEVM
hyperevm_mainnet - Robinhood Chain
robinhood_mainnet
Related references
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.
eth_getTransactionByHash: parameters, returns and CU
Return a transaction by its hash. See parameters, return value, CU metering and supported chains for this method.