v1

latestOpenAPI 3.1.02026-07-2612501.4 MB

apt_v1-blocks-by_version-{version}

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

get/node/v1/aptos/mainnet/{apiKey}/v1/blocks/by_version/{version}

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>

versionstring required

The ledger version to retrieve the block information

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"
}