Alchemy Logo

getBlocks

POST
/{apiKey}

Returns a list of confirmed blocks between two slots.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

start_slotintegerrequired

The starting slot.

end_slotintegeroptional

The ending slot.

Configurationobjectoptional

Optional configuration object.

Responses

200

Returns an array of u64 integers listing confirmed blocks.

List of confirmed blocks between slots.

Was this page helpful?