Get the block for the given block height or block hash.
Last updated 9 months ago
GET https://api.data123.io/aleo/<API KEY>/v1/testnet3/block/{height_or_hash}
height or hash
u32 or string
Yes
The block height or hash of the requested block
result
The latest state root
curl https://api.data123.io/aleo/<API KEY>/v1/testnet3/block/1000
curl https://api.data123.io/aleo/<API KEY>/rpc/v1/testnet3 \ -X POST \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"getBlockByHeight","params":[1000],"id":1}'