curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getblockbyid \
--header 'Content-Type: application/json' \
--data '{
"value": "0000000000f4245300b88ffeb9bdb95b88c66b5ce6bb0ee79d85d5ce14b6a2a7ca"
}'{
"blockID": "<string>",
"block_header": {
"raw_data": {
"timestamp": 123,
"txTrieRoot": "<string>",
"parentHash": "<string>",
"number": 123,
"witness_address": "<string>",
"version": 123
},
"witness_signature": "<string>"
},
"transactions": [
{}
]
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getblockbyid \
--header 'Content-Type: application/json' \
--data '{
"value": "0000000000f4245300b88ffeb9bdb95b88c66b5ce6bb0ee79d85d5ce14b6a2a7ca"
}'{
"blockID": "<string>",
"block_header": {
"raw_data": {
"timestamp": 123,
"txTrieRoot": "<string>",
"parentHash": "<string>",
"number": 123,
"witness_address": "<string>",
"version": 123
},
"witness_signature": "<string>"
},
"transactions": [
{}
]
}value — the block ID (hash) in hexadecimal format to retrieveblockID — the block hash identifierblock_header — block header information containing:
raw_data — raw block header data including:
timestamp — block generation timestamp in millisecondstxTrieRoot — transaction trie root hashparentHash — parent block hashnumber — block height/numberwitness_address — address of the block producer (witness)version — block versionwitness_signature — digital signature of the block producertransactions — array of all transactions included in the blockwallet/getblockbyid method is used for:
Show child attributes
Was this page helpful?