curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/walletsolidity/getblockbyid \
--header 'Content-Type: application/json' \
--data '{
"value": "0000000004326f801c9c4b8c43c5e0b1f5e7b4c4a8ff6d02ab53a26d2344a5c1"
}'
{
"blockID": "0000000004326f801c9c4b8c43c5e0b1f5e7b4c4a8ff6d02ab53a26d2344a5c1",
"block_header": {
"raw_data": {
"number": 70000000,
"txTrieRoot": "d41c56e7e8b4a9d4e7c8c7b4f3e6d5a2b1c9d8e7f6a5b4c3d2e1f0e9d8c7b6",
"parentHash": "0000000004326f7f2c9c4b8c43c5e0b1f5e7b4c4a8ff6d02ab53a26d2344a5c0",
"timestamp": 1704067200000,
"witness_address": "41e38c95e0d7e9b68f7c8f7b4d3e6a5c2b1f9e8d7c6b5a4f3e2d1c0b9a8"
},
"witness_signature": "<string>"
},
"transactions": [
{
"txID": "<string>",
"raw_data": {},
"signature": [
"<string>"
]
}
],
"blockSize": 1024
}
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/walletsolidity/getblockbyid \
--header 'Content-Type: application/json' \
--data '{
"value": "0000000004326f801c9c4b8c43c5e0b1f5e7b4c4a8ff6d02ab53a26d2344a5c1"
}'
{
"blockID": "0000000004326f801c9c4b8c43c5e0b1f5e7b4c4a8ff6d02ab53a26d2344a5c1",
"block_header": {
"raw_data": {
"number": 70000000,
"txTrieRoot": "d41c56e7e8b4a9d4e7c8c7b4f3e6d5a2b1c9d8e7f6a5b4c3d2e1f0e9d8c7b6",
"parentHash": "0000000004326f7f2c9c4b8c43c5e0b1f5e7b4c4a8ff6d02ab53a26d2344a5c0",
"timestamp": 1704067200000,
"witness_address": "41e38c95e0d7e9b68f7c8f7b4d3e6a5c2b1f9e8d7c6b5a4f3e2d1c0b9a8"
},
"witness_signature": "<string>"
},
"transactions": [
{
"txID": "<string>",
"raw_data": {},
"signature": [
"<string>"
]
}
],
"blockSize": 1024
}
value
— the block ID (hash) in hexadecimal formatblockID
— the block hashblock_header
— block header information
raw_data
— raw block header datawitness_signature
— witness signature for the blocktransactions
— array of transactions in the blockblockSize
— size of the block in bytestimestamp
— block creation timestamptxTrieRoot
— transaction trie root hashparentHash
— hash of the parent blocknumber
— block numberwitness_address
— address of the block producerwalletsolidity/getblockbyid
method is used for:
Solidified block information
The response is of type object
.