Skip to content

eth_getBlockByHash

Returns information about a block by hash.

ParameterTypeRequiredDescription
blockHashhexYesBlock hash
fullTransactionsbooleanNoReturn full tx objects
{
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": [
"0x...",
false
],
"id": 1
}
Terminal window
curl -X POST https://bsc-mainnet.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getBlockByHash","params":["0x...",false],"id":1}'