Get Block
Get the block for the given block height or block hash.
ENDPOINT
GET https://api.data123.io/aleo/<API KEY>/v1/testnet3/block/{height_or_hash}Arguments
Parameter
Type
Request
Description
height or hash
u32 or string
Yes
The block height or hash of the requested block
Response
Parameter
type
Description
Request
curl https://api.data123.io/aleo/<API KEY>/v1/testnet3/block/1000curl 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}'Last updated