요금GitHub대시보드

Aptos

/v1/blocks/by_version/{version}40 크레딧

Get block by ledger version

네트워크: apt

매개변수

이름타입설명
versionintegerPath. Ledger version to find the containing block for.
with_transactionsbooleanQuery. If true, include the transactions of the block. Defaults to false. (선택)

반환값

타입

object

Block with block_height, block_hash, block_timestamp, first_version, last_version and, when requested, transactions. Returns 410 if the block is pruned.

코드 예제

curl 'https://holy-burned-sky-apt-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/v1/blocks/by_version/{version}'