getnowblock - Tron

getnowblock. Returns the most recent block on the Tron blockchain.

getnowblock - tron [Value: 20CU]
Returns the most recent block on the Tron blockchain.
Use cases

Use cases

  • Also available as GET
  • Anchor a new transaction's ref_block_bytes and ref_block_hash
Constraints

Constraints

  • Node must be synchronized with the network
  • walletsolidity variant returns only the last solidified (confirmed) block
Get started
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
     --url https://lb.drpc.live/tron/{API-KEY}/wallet/getnowblock \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '{}'
Copy
Response
200
{
    "blockID": "00000000051013135cc2a882717c7656a4c53c2e7158a00913540ab397e1f19c",
    "block_header": {
        "raw_data": {
            "timestamp": 1785489366000,
            "txTrieRoot": "642d767c3bdee7e3a025354ce57c21190c6e69dd9a4f7c74942d16795faf2407",
            "parentHash": "0000000005101312abd068e357ca0d0a882e402f7e72170da1896136075f8736",
            "number": 84939539,
            "witness_address": "413ce9a6b8ad08e5bb13b57a9d3782946a5efdb36d",
            "version": 36
        },
        "witness_signature": "ddb32a0a2cf8fd9adb30679d8756dde0f1af73e4671d2de747ca9bcf93dc002170753d84790f4903e652aa7cf1d76f11686f0a9cb8e2a065020ecadc87e9cede00"
    },
    "transactions": [
        {
            "raw_data": {
                "ref_block_bytes": "12ff",
                "ref_block_hash": "b9534eaebfeb259e",
                "expiration": 1785489420000,
                "contract": [
                    {
                        "parameter": {
                            "value": {
                                "owner_address": "418d01cf0c9bfd935042c62cdf3a5392cc0611e79f",
                                "contract_address": "41a614f803b6fd780986a42c78ec9c7f77e6ded13c",
                                "data": "a9059cbb0000000000000000000000413f46c7ade0f6b73b8fc1b4a143855394c405762e0000000000000000000000000000000000000000000000000000000002625a00"
                            },
                            "type_url": "type.googleapis.com/protocol.TriggerSmartContract"
                        },
                        "type": "TriggerSmartContract"
                    }
                ],
                "timestamp": 1785489362909,
                "fee_limit": 30000000
            },
            "signature": [
                "ed2c219265757131bd18a8349a9a2d151c8b00bf897479197b0bcebd688fe1fb1657600e312b8a3383168d4f4b8abe20ecf55ab632f3636cdbd03204eb2f986c00"
            ],
            "ret": [
                {
                    "contractRet": "SUCCESS"
                }
            ],
            "raw_data_hex": "0a0212ff2208b9534eaebfeb259e40e0ddd9bbfb335aae01081f12a9010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412740a15418d01cf0c9bfd935042c62cdf3a5392cc0611e79f121541a614f803b6fd780986a42c78ec9c7f77e6ded13c2244a9059cbb0000000000000000000000413f46c7ade0f6b73b8fc1b4a143855394c405762e0000000000000000000000000000000000000000000000000000000002625a0070dd9fd6bbfb3390018087a70e",
            "txID": "72be8976354fa98c3e753aad8ee2753d0e7c9a5bc99c45a08a79c19160b5d0cd"
        },
        {
            "raw_data": {
                "ref_block_bytes": "12fb",
                "ref_block_hash": "c024c8dc0c8b711d",
                "expiration": 1785490246303,
                "contract": [
                    {
                        "parameter": {
                            "value": {
                                "owner_address": "41f9cc582480d3158adea4793c7d69baa1c86b09e0",
                                "contract_address": "41a614f803b6fd780986a42c78ec9c7f77e6ded13c",
                                "data": "a9059cbb0000000000000000000000411d28f0451d3fc1c8e59402c821a63d7f362e696f0000000000000000000000000000000000000000000000000000000005f5e100"
                            },
                            "type_url": "type.googleapis.com/protocol.TriggerSmartContract"
                        },
                        "type": "TriggerSmartContract"
                    }
                ],
                "timestamp": 1785489346303,
                "fee_limit": 100000000
            },
            "signature": [
                "d52568cb72a5cfafa2131bcfd7b743eb6484c6611b340cd68fb952808abee24f15da9af03913d809e6482e4be85eb65fb3f9ae6486292a6200cd353c14df681c01"
            ],
            "ret": [
                {
                    "contractRet": "SUCCESS"
                }
            ],
            "raw_data_hex": "0a0212fb2208c024c8dc0c8b711d409f958cbcfb335aae01081f12a9010a31747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e54726967676572536d617274436f6e747261637412740a1541f9cc582480d3158adea4793c7d69baa1c86b09e0121541a614f803b6fd780986a42c78ec9c7f77e6ded13c2244a9059cbb0000000000000000000000411d28f0451d3fc1c8e59402c821a63d7f362e696f0000000000000000000000000000000000000000000000000000000005f5e10070ff9dd5bbfb33900180c2d72f",
            "txID": "a1af302e7cc604b06f4b3daf0ce7df357beb7c56e416757924d8eeee543522e7"
        }
    ]
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
ParametersThis method does not accept any parameters.
This method does not accept any parameters.
visibleboolean
Set to true to format addresses in Base58; set to false for hex format. (Default: false)

Response

200
Returns the most recent block on the Tron blockchain.

Response params

object
blockIDstring
The unique hash identifying this block, encoding both its height and content.
block_headerobject
The block's header, containing metadata about its position in the chain and the producing witness.
object
raw_dataobject
The core header fields that were hashed and signed by the producing witness.
object
timestampinteger
Unix timestamp, in ms, at which this block was produced.
txTrieRootstring
The Merkle root hash of all transactions included in this block, used to verify their integrity.
parentHashstring
The blockID of the preceding block, linking this block into the chain.
numberinteger
The height (sequential number) of this block in the chain.
witness_addressstring
The address of the Super Representative who produced this block.
versioninteger
The block format version used by the node that produced this block.
witness_signaturestring
The hex-encoded signature from the producing witness, proving they authored this block.
transactionsarray_of_objects
The list of transactions included in this block, each with its execution outcome.
object
raw_dataobject
The unsigned transaction body containing the contract instruction and blockchain reference data.
object
ref_block_bytesstring
The last two bytes of the reference block number, used for transaction expiration and replay protection.
ref_block_hashstring
The last eight bytes of the reference block's hash, paired with ref_block_bytes for replay protection.
expirationinteger
Unix timestamp, in ms, after which this transaction would no longer be valid.
contractarray_of_objects
The list of contract instructions executed by this transaction.
object
parameterobject
The typed payload describing the specific contract call being made.
object
valueobject
The decoded fields of the contract — here, a smart contract call (e.g. a TRC20 token transfer).
object
owner_addressstring
The address that initiated the smart contract call, in hex format.
contract_addressstring
The address of the smart contract being invoked, in hex format.
datastring
The hex-encoded ABI-encoded call data, including the function selector and its arguments.
type_urlstring
The fully qualified protobuf type identifier describing which contract schema `value` should be decoded with.
typestring
The human-readable name of the contract type being executed (here, TriggerSmartContract).
timestampinteger
Unix timestamp, in ms, marking when the transaction was created/signed by the client.
fee_limitinteger
The maximum amount of TRX, in sun, the sender is willing to spend on Energy fees for this contract call.
signaturearray_of_strings
The list of hex-encoded signatures authorizing this transaction.
retarray_of_objects
The execution outcome of this transaction as recorded on-chain.
object
contractRetstring
The result status of the contract execution (e.g. SUCCESS, REVERT, OUT_OF_ENERGY).
raw_data_hexstring
The hex-encoded serialized bytes of this transaction's raw_data.
txIDstring
The unique transaction hash (transaction ID) for this transaction, computed as the SHA256 of raw_data.