v1

latestOpenAPI 3.1.02026-07-2612501.4 MB

apt_v1-blocks-by_height-{block_height}

Retrieves a specific block's information from the Aptos blockchain network, given its height.

get/node/v1/aptos/mainnet/{apiKey}/v1/blocks/by_height/{block_height}

Path parameters

apiKeystring required

please <span class="custom-style"><a href="../docs/quick-start-guide#-creating-your-api-key-on-the-zan-platform" target="_blank">create your own API key</a></span>

block_heightstring required

The height of the block to retrieve, starting from the genesis block as 0

Response

200

block_heightstring
block_hashstring
block_timestampstring
first_versionstring
last_versionstring
transactionsstring

Example response

{
  "block_height": "65880446",
  "block_hash": "0x4da3720583fb007abcf6b5b3d43d79cf8b08c6b3c33b899b987ad82a04c8f64b",
  "block_timestamp": "1688449286747062",
  "first_version": "171859527",
  "last_version": "171859529"
}