gettransactioninfobyid - Tron

gettransactioninfobyid. Returns the execution result, receipt, and logs for a confirmed transaction by its hash.

gettransactioninfobyid - tron [Value: 20CU]
Returns the execution result, receipt, and logs for a confirmed transaction by its hash.
Use cases

Use cases

  • Also available as GET
  • Read event logs emitted by a smart contract call
Constraints

Constraints

  • Only available once the transaction is included in a block (not for pending transactions)
  • Returns an empty object if the transaction hash is unknown
  • Also available under /walletsolidity/ for confirmed (solidified) data instead of the latest state
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/gettransactioninfobyid \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '{"value": "example"}'
Copy
Response
200
{
  "id": "d0807adb3c5412aa150787b944c96ee898c997debdc27e2f6a643c771edb5933",
  "fee": 2790,
  "blockNumber": 5467102,
  "blockTimeStamp": 1546455621000,
  "contractResult": [
    ""
  ],
  "receipt": {
    "net_fee": 2790
  }
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersobject
object
valuestring
[Required for GET] The transaction hash to look up
visibleboolean
Set to true to format addresses in Base58; set to false for hex format. (Default: false)

Response

200
Returns the execution result, receipt, and logs for a confirmed transaction by its hash.

Response params

object
idstring
The unique transaction hash (transaction ID) this receipt belongs to.
feeinteger
The total TRX fee, in sun, actually deducted for this transaction.
blockNumberinteger
The height of the block in which this transaction was packed.
blockTimeStampinteger
Unix timestamp, in ms, of the block in which this transaction was packed.
contractResultarray_of_strings
The hex-encoded return value(s) of the smart contract call.
contract_addressstring
The address of the smart contract that was deployed or invoked by this transaction.
receiptobject
The resource consumption details recorded for this transaction, such as Energy and bandwidth usage.
logarray_of_objects
The list of event logs emitted by the smart contract during execution.
object
addressstring
The address of the contract that emitted this log entry.
topicsarray_of_strings
The indexed event parameters, where the first entry is the event signature hash and the rest are indexed argument values.
datastring
The hex-encoded ABI-encoded non-indexed event parameters.
resultstring
The overall execution outcome of the transaction, either SUCCESS or FAILED.
resMessagestring
A hex-encoded explanation of why the transaction failed, present only when result is FAILED.
internal_transactionsarray_of_objects
The list of internal calls and transfers triggered by this transaction's contract execution.
withdraw_amountinteger
The amount of witness block-production rewards withdrawn, present only for WithdrawBalance transactions.
unfreeze_amountinteger
The amount of TRX released back to the account, present only for Stake 1.0 UnfreezeBalance transactions.
withdraw_expire_amountinteger
The amount of matured Stake 2.0 unfrozen TRX withdrawn to the account's liquid balance.
cancel_unfreezeV2_amountobject
A mapping of resource type to the amount of pending Stake 2.0 unfreeze that was cancelled and restaked.
assetIssueIDstring
The identifier assigned to a newly created TRC10 token, present only for CreateAssetIssue transactions.
exchange_idstring
Fields related to TRON's on-chain bancor-style Exchange feature, such as the exchange pair identifier or resulting order ID; only present for Exchange-related contract types.