Get the blocks for the given block range.
Last updated 9 months ago
GET https://api.data123.io/aleo/<API KEY>/v1/testnet3/blocks?start={start_height}&end={end_height}
start_height
u32
Yes
The starting block height of the requested blocks
end_height
The ending block height of the requested blocks
result
The latest state root
curl https://api.data123.io/aleo/<API KEY>/v1/testnet3/blocks?start_height=1000&end_height=1005
curl 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}'