Get Blocks
Get the blocks for the given block range.
ENDPOINT
GET https://api.data123.io/aleo/<API KEY>/v1/testnet3/blocks?start={start_height}&end={end_height}Arguments
Parameter
Type
Request
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
Request
curl https://api.data123.io/aleo/<API KEY>/v1/testnet3/blocks?start_height=1000&end_height=1005curl https://api.data123.io/aleo/<API KEY>/rpc/v1/testnet3 \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"getBlocks","params":[1000,1005],"id":1}'Last updated