Retrieve the transaction fee and block height using the transaction ID (confirmed state).
Returns
This interface returns a TransactionInfo object, which includes the following fields:
Here is the updated table with numbered list items:
| Field | Type | Description |
|---|---|---|
| id | string | Transaction ID |
| fee | int64 | The total number of POX burned in this transaction, including POX burned for bandwidth/energy, memo fee, account activation fee, multi-signature fee, and other fees |
| blockNumber | int64 | The block number |
| blockTimeStamp | int64 | The block timestamp, in milliseconds |
| contractResult | string[] | Transaction execution results |
| contract_address | string | Contract address |
| receipt | ResourceReceipt | Transaction receipt, including transaction execution result and fee details, containing:
|
| log | Log[] | Events triggered during the smart contract call, including:
|
| result | int | Execution result. If successful, this field is not displayed. If failed, it will return "FAILED". |
| resMessage | string | Details of execution failure (in hex format). Convert to string for plaintext information. |
| withdraw_amount | int64 | For withdrawal reward and unfreeze transactions, returns the number of rewards withdrawn to the account (in suns, smallest unit of POX). |
| unfreeze_amount | int64 | In Stake1.0, for unstaking transactions, returns the amount of unstaked POX (in suns). |
| internal_transactions | InternalTransaction[] | Internal transactions |
| withdraw_expire_amount | int64 | In Stake2.0, for unstaking and withdrawing unfrozen balance transactions, or canceling all unstakes, returns the amount of unfrozen POX withdrawn to the account (in suns). |
| cancel_unfreezeV2_amount | map<string, int64> | Amount of POX re-staked to obtain resources (in suns). Key options: "BANDWIDTH", "ENERGY", or "POLLUX_POWER". |