eth_getBlockByHash

Description

Returns information about a block by hash.

Counts as 1 request. See Request Counting.

Parameters

ParameterTypeRequiredDescription
blockHashhexYesBlock hash
fullTransactionsbooleanNoReturn full tx objects

Request

{ "jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": [ "0x...", false ], "id": 1 }

Code Examples

curl -X POST https://bsc-rpc.blockreq.com/v1/rpc/public \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"eth_getBlockByHash","params":["0x...",false],"id":1}'

Try It