Alchemy Logo

getBlocks

POST
/{apiKey}

Returns a list of confirmed blocks between two slots.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

integerrequired

The starting slot.

integeroptional

The ending slot.

objectoptional

Optional configuration object.

Responses

200

Returns an array of u64 integers listing confirmed blocks.

List of confirmed blocks between slots.

Was this page helpful?