Alchemy Logo

eth_getBlockByNumber

POST
/{apiKey}

Returns information about a block by its number.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

Block number or tagstring or enumrequired

The block number or special tags like 'latest', 'earliest', or 'pending'.

Hydrated transactionsbooleanrequired

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?