Skip to content
Alchemy Logo

getblock

POST
/{apiKey}

Returns information about a block, based on the provided block hash.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

stringformat: "^[a-fA-F0-9]{64}$"required

The hash of the block to retrieve.

enumoptionaldefaults to 1

Level of detail to return. - 0: hex-encoded string, - 1: basic block info, - 2: with transactions, - 3: with transactions + input prevouts.

Defaults to 1.

Allowed values:

Responses

200

The block object or hex string, depending on verbosity.

Was this page helpful?