eth_getBlockByNumber
POST
/{apiKey}
Returns information about a block by its number.
Path Parameters
stringrequireddefaults to
docs-demoFor higher throughput, create your own API key
Request
string or enumrequired
The block number or special tags like 'latest', 'earliest', or 'pending'.
booleanrequired
If true, returns full transaction objects; if false, returns only transaction hashes.
Responses
200
The block object containing various properties of the block.
Was this page helpful?