eth_getBlockByHash
Description
Returns information about a block by hash.
Counts as 1 request. See Request Counting.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
blockHash | hex | Yes | Block hash |
fullTransactions | boolean | No | Return full tx objects |
Request
{
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": [
"0x...",
false
],
"id": 1
}Code Examples
curl -X POST https://robinhood-mainnet-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getBlockByHash","params":["0x...",false],"id":1}'