---
title: "gettransactioninfobyblocknum"
method: POST
path: "/node/v1/tron/mainnet/{apiKey}/wallet/gettransactioninfobyblocknum"
---

# gettransactioninfobyblocknum

`POST /node/v1/tron/mainnet/{apiKey}/wallet/gettransactioninfobyblocknum`

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

## Path parameters

- `apiKey` string, required

## Request body

- object
  - `num` integer, required — Block height

## Response `200`

200

- object[]
  - `id` string — Transaction ID
  - `fee` integer — 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
  - `blockNumber` integer — The block number
  - `blockTimeStamp` integer — The block timestamp, the unit is millisecond
  - `contractResult` string[] — Transaction Execution Results
  - `contract_address` string — Contract address
  - `receipt` object — Transaction receipt, including transaction execution result and transaction fee details
  - `log` object[] — The log of events triggered during the smart contract call
  - `result` integer — Execution results. If the execution is successful, the field will not be displayed in the returned value
  - `resMessage` string — 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_amount` integer — 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_amount` integer — In the Stake1.0 stage, for unstaking transactions, this field returns the amount of unstaked TRX, the unit is sun
  - `internal_transactions` object[] — Internal transaction
  - `withdraw_expire_amount` string — 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_amount` object — 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"

---

[API](https://skmtc.net/zan/apis/zan-getnftmetadata.md) · [All operations](https://skmtc.net/zan/apis/zan-getnftmetadata/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zan/zan-getnftmetadata/versions/be8fa2338895/schema)
