curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/walletsolidity/getblockbylatestnum \
--header 'Content-Type: application/json' \
--data '{
"num": 5
}'{
"block": [
{
"blockID": "<string>",
"block_header": {
"raw_data": {
"number": 123,
"timestamp": 123,
"parentHash": "<string>",
"witness_address": "<string>"
},
"witness_signature": "<string>"
},
"transactions": [
{}
],
"blockSize": 123
}
]
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/walletsolidity/getblockbylatestnum \
--header 'Content-Type: application/json' \
--data '{
"num": 5
}'{
"block": [
{
"blockID": "<string>",
"block_header": {
"raw_data": {
"number": 123,
"timestamp": 123,
"parentHash": "<string>",
"witness_address": "<string>"
},
"witness_signature": "<string>"
},
"transactions": [
{}
],
"blockSize": 123
}
]
}num — the number of latest blocks to retrieve (integer)blockID — the block hashblock_header — block header informationtransactions — array of transactions in each blockblockSize — size of each block in bytestimestamp — block creation timestampsnumber — block numberswalletsolidity/getblockbylatestnum method is used for:
Number of latest blocks to retrieve
1 <= x <= 1005
Array of the latest solidified blocks
Show child attributes
Block hash identifier
Show child attributes
Transactions in the block
Size of the block in bytes
Was this page helpful?