Skip to content

Get Blocks

Returns the blocks for the given block range.

ENDPOINT
GET https://aleo-mainnet.obscura.network/v1/<API_KEY>/mainnet/blocks?start={start_height}&end={end_height}
ENDPOINT
GET https://aleo-testnetbeta.obscura.network/v1/<API_KEY>/testnet/blocks?start={start_height}&end={end_height}

Arguments

Parameter Type Required Description
start_height u32 Yes The starting block height of the requested blocks
end_height u32 Yes The ending block height of the requested blocks

Response

Parameter Type Description
result array The requested blocks