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-ключ