v1

latestOpenAPI 3.1.02026-07-2612501.4 MB

gettransactioninfobyblocknum

This interface returns the TransactionInfo data of all transactions contained in the block of the specified height.

post/node/v1/tron/mainnet/{apiKey}/wallet/gettransactioninfobyblocknum

Path parameters

apiKeystring required

please <span class="custom-style"><a href="../docs/quick-start-guide#-creating-your-api-key-on-the-zan-platform" target="_blank">create your own API key</a></span>

Request body

numinteger required

Block height

Response

200

idstring

Transaction ID

feeinteger

The total number of TRX burned in this transaction, including TRX burned for bandwidth/energy, memo fee, account activation fee, multi-signature fee and other fees

blockNumberinteger

The block number

blockTimeStampinteger

The block timestamp, the unit is millisecond

contractResultstring[]

Transaction Execution Results

contract_addressstring

Contract address

receiptobject

Transaction receipt, including transaction execution result and transaction fee details

logobject[]

The log of events triggered during the smart contract call

resultinteger

Execution results. If the execution is successful, the field will not be displayed in the returned value

resMessagestring

When the transaction execution fails, the details of the failure will be returned through this field. Hex format, you can convert it to a string to get plaintext information

withdraw_amountinteger

For the withdrawal reward transaction、unfreeze transaction, they will withdraw the vote reward to account. The number of rewards withdrawn to the account is returned through this field, and the unit is sun

unfreeze_amountinteger

In the Stake1.0 stage, for unstaking transactions, this field returns the amount of unstaked TRX, the unit is sun

internal_transactionsobject[]

Internal transaction

withdraw_expire_amountstring

In the Stake2.0 stage, for unstaking transaction and withdrawing unfrozen balance transaction, and cancelling all unstakes transaction, this field returns the amount of unfrozen TRX withdrawn to the account in this transaction, the unit is sun

cancel_unfreezeV2_amountobject

The amount of TRX re-staked to obtain various types of resources, in sun, that is, the amount of unstaked principal that has been canceled, the key is: "BANDWIDTH" or "ENERGY" or "TRON_POWER"