curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getblockbylatestnum \
--header 'Content-Type: application/json' \
--data '
{
"num": 5,
"visible": true
}
'{
"block": [
{
"blockID": "<string>",
"block_header": {},
"transactions": [
{}
]
}
]
}curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getblockbylatestnum \
--header 'Content-Type: application/json' \
--data '
{
"num": 5,
"visible": true
}
'{
"block": [
{
"blockID": "<string>",
"block_header": {},
"transactions": [
{}
]
}
]
}num — number of latest blocks to retrieve (maximum 100)visible — optional boolean parameter. When set to true, addresses are in base58 format. Default is false.block — array of block objects, each containing:
blockID — the block hashblock_header — block header with raw data and witness signaturetransactions — array of transactions in each blockwallet/getblockbylatestnum method is used for:
Was this page helpful?