blocks

Description

Returns details of specific blocks within a range of heights from Aleo blockchain.

1000 blocks can be queried at maximum in a single request.

Method Parameters

  • params - Object:

    • startHeight - number: Start height of desired range (incuded).

    • endHeight - number: End height of desired block (excuded).

Returns

Example

Request

curl --location --request POST 'https://testnet3.aleorpc.com' \
 --header 'Content-Type: application/json' \
 --data-raw '{
     "jsonrpc": "2.0",
     "id": 1,
     "method": "getBlocks",
     "params": {
        "start": 2758584,
        "end": 2758585
     }
 }'

Response

Last updated