Skip to content

Get blocks by heights list

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

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.

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