Alchemy Logo

getBlocksWithLimit

POST
/{apiKey}

Returns a list of confirmed blocks starting at the given slot.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

integerrequired

The starting slot.

integerrequired

The limit for the number of blocks to return.

objectoptional

Optional configuration object.

Responses

200

Returns an array of u64 integers listing confirmed blocks starting at the start_slot.

List of confirmed blocks between slots.

Was this page helpful?