Granite Upgrade Activates in12d:17h:00m:53s
Eth

eth_getBlockByHash

Returns the block for a given hash. Second param selects full transactions.

POST
/ext/bc/C/rpc#eth_getBlockByHash

JSON-RPC request

jsonrpcstring
methodstring
params

[blockHash, returnFullTransactions]

Items2 <= items <= 2
idinteger

Response Body

application/json

application/json

curl -X POST "https://api.avax.network/ext/bc/C/rpc#eth_getBlockByHash" \  -H "Content-Type: application/json" \  -d '{    "jsonrpc": "2.0",    "method": "eth_getBlockByHash",    "params": [      "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331",      false    ],    "id": 1  }'
{
  "jsonrpc": "2.0",
  "result": null,
  "error": {
    "code": 0,
    "message": "string",
    "data": null
  },
  "id": 1
}
{
  "jsonrpc": "2.0",
  "error": {
    "code": 0,
    "message": "string",
    "data": null
  },
  "id": 1
}

Is this guide helpful?