ТарифыGitHubКабинет

TRON

walletsolidity/getblockbynum (full)Кредиты: 25

Returns a solidified block by number (Solidity node API).

Сеть: tronВариант: full

Параметры

ИмяТипОписание
numnumberBlock number (height); when omitted the genesis block is returned.

Результат

Тип

Object

Block object (blockID, block_header, transactions); {} when the block is unknown or not yet solidified.

Примеры кода

curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/walletsolidity/getblockbynum' \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "num": 1000000
}'