Skip to main content

GetBlockByLatestNum gRPC Method

Retrieves the specified number of latest blocks from the TRON network

Updated on
Jul 07, 2026

Parameters

num
integer
REQUIRED

The number of latest blocks to retrieve

Returns

block
array

List of blocks

transactions
array

List of transactions in the block

transaction
object

Transaction details

raw_data
object

Raw transaction data

signature
array

Transaction signatures

ret
array

Transaction results

txid
string

Transaction ID (hash of transaction.rowdata)

constant_result
array

Results from constant function calls

result
object

Transaction result status

result
boolean

Whether the transaction was successful

code
string

Result code

message
string

Result message

energy_used
integer

Amount of energy used

logs
array

Event logs generated

address
string

Contract address that generated the log

topics
array

Indexed log topics

data
string

Log data

internal_transactions
array

Internal transactions within a smart contract

hash
string

Internal transaction hash

caller_address
string

Caller address

transferTo_address
string

Recipient address

callValueInfo
array

Value transfer information

note
string

Additional notes

rejected
boolean

Whether the transaction was rejected

extra
string

Extra information

energy_penalty
integer

Energy penalty applied

block_header
object

Header information for the block

raw_data
object

Raw header data

timestamp
integer

Block timestamp

txTrieRoot
string

Root of the transaction Merkle tree

parentHash
string

Hash of the parent block

number
integer

Block number

witness_id
integer

Witness ID

witness_address
string

Witness address

version
integer

Block version

accountStateRoot
string

Root of the account state tree

witness_signature
string

Signature of the witness

blockid
string

The block ID (hash)

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free