curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getblockbynum \
--header 'Content-Type: application/json' \
--data '
{
"num": 1000,
"visible": false
}
'{
"blockID": "<string>",
"block_header": {
"raw_data": {
"number": 123,
"timestamp": 123,
"parentHash": "<string>"
},
"witness_signature": "<string>"
},
"transactions": [
{}
],
"visible": true
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getblockbynum \
--header 'Content-Type: application/json' \
--data '
{
"num": 1000,
"visible": false
}
'{
"blockID": "<string>",
"block_header": {
"raw_data": {
"number": 123,
"timestamp": 123,
"parentHash": "<string>"
},
"witness_signature": "<string>"
},
"transactions": [
{}
],
"visible": true
}num — the block number to retrieve (integer)visible — optional boolean to specify address format (default: false for hex format)blockID — unique block identifier hashblock_header — block header information containing:
raw_data — raw header data with timestamp, number, and parent hashwitness_signature — block producer’s signaturetransactions — array of transaction objects in the blockvisible — boolean indicating address format usedwallet/getblockbynum method is used for:
Block information
Was this page helpful?