Skip to content

Get blocks by heights list

Returns the blocks for the given block heights list. Only valid heights will return blocks, so the amount of blocks returned might not match the amount of blocks requested.

ENDPOINT
GET https://aleo-mainnet.obscura.network/v1/<API_KEY>/blocks/blockHeights
ENDPOINT
GET https://aleo-testnetbeta.obscura.network/v1/<API_KEY>/blocks/blockHeights

Request Body

Type Required Description
Array Yes The heights of the requested blocks. Must be of maximum length 1000 and consist of non-negative integers.

Response

Parameter Type Description
result Array<Block> The requested blocks