blocks

Get blocks by height

This endpoint allows you to get the transactions in a block and the corresponding block information.

Transactions are limited by max default transactions size. If not all transactions are present, the user will need to query for the rest of the transactions via the get transactions API.

curl --request GET \
  --url https://aptos.devnet.m1.movementlabs.xyz/blocks/by_height/block_height \
  --header 'Accept: application/json, application/x-bcs'

Get blocks by version

This endpoint allows you to get the transactions in a block and the corresponding block information given a version in the block.

Transactions are limited by max default transactions size. If not all transactions are present, the user will need to query for the rest of the transactions via the get transactions API:

curl --request GET \
  --url https://aptos.devnet.m1.movementlabs.xyz/blocks/by_version/version \
  --header 'Accept: application/json, application/x-bcs'

Last updated