Get blocks by height
GET/blocks/by_height/:block_height
This endpoint allows you to query transactions and block information for a specific block.
Transactions are limited by the default maximum transaction count. If not all transactions are returned, you must query the remaining transactions separately using the get transactions API. A 410 status code is returned if the block has been pruned.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 410
- 429
Successful Response
Response Headers
X-APTOS-BLOCK-HEIGHT
Current block height of the chain
X-APTOS-CHAIN-ID
Chain ID of the current chain
X-APTOS-EPOCH
Current epoch of the chain
X-APTOS-LEDGER-OLDEST-VERSION
Oldest unpruned ledger version of the chain
X-APTOS-LEDGER-TIMESTAMPUSEC
Current timestamp of the chain
X-APTOS-LEDGER-VERSION
Current ledger version of the chain
X-APTOS-OLDEST-BLOCK-HEIGHT
Oldest unpruned block height of the chain
X-APTOS-CURSOR
Cursor for the next page
X-APTOS-GAS-USED
Amount of gas actually used for transaction execution
Bad Request
Unauthorized
Forbidden
Not Found
Block Pruned
Too Many Requests