Alchemy Logo

eth_getBlockByHash

POST
/{apiKey}

Returns information about a block by its hash.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

Block hashstringformat: "^0x[0-9a-f]{64}$"required

The hash of the block to retrieve.

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?