Skip to main content

GetBlockByNum

POST

Returns the Block Object corresponding to the 'Block Height' specified (number of blocks preceding it).
Path Parameters
chainstringrequired
Parameter specifying the target chain to query.
networkstringrequired
Parameter specifying the network of the target chain.
Request Body
numinteger
Block number (height). Example: 61815425
visibleboolean
Optional. Set to true to format addresses in Base58; set to false for hex format. (Default: false)
Responses
blockIDstring
numberinteger
txTrieRootstring
witness_addressstring
parentHashstring
timestampinteger
witness_signaturestring
cURL
curl -X POST 'https://tron-mainnet.nodit.io/wallet/getblockbynum' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: nodit-demo' \
-d '{
"num": 61815425
}'