getblockbynum

TRONC1

Returns the block at the given number, including transactions. Historic blocks resolve against our archive TRON nodes.

Endpoint
POST https://api.1st-node.com/v1/tron/wallet/getblockbynum

Parameters

NameTypeDescription
numnumberThe block number.

Returns

object — the block at that height.

Request

curl https://api.1st-node.com/v1/tron/wallet/getblockbynum \
  -H "Authorization: Bearer $ONE_KEY" \
  -H "content-type: application/json" \
  -d '{ "num": 50000000 }'
{ "num": 50000000 }

Response

{ "blockID": "0000000002fd…", "block_header": {}, "transactions": [] }
More blocks methods on TRON

TRON API

常见问题

Can I fetch historic TRON blocks?

Yes — our archive nodes serve any past block number.

充值、拿密钥、上线。

自助开通。支持加密货币或银行卡。按额度计费——重型原语更贵,简单调用很便宜。

获取 API 密钥