文档
定价GitHub控制台

Aptos

/v1/blocks/by_height/{block_height}40 额度

Get block by height

网络: apt

参数

名称类型描述
block_heightintegerPath. Block height to look up, starting at 0.
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_height/{block_height}'