POST
/
95e61622bf6a8af293978377718e3b77
/
walletsolidity
/
gettransactioninfobyid
walletsolidity/gettransactioninfobyid
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/walletsolidity/gettransactioninfobyid \
  --header 'Content-Type: application/json' \
  --data '{
  "value": "7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b"
}'
{
  "id": "7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b",
  "blockNumber": 70000000,
  "blockTimeStamp": 1704067200000,
  "contractResult": [
    "<string>"
  ],
  "fee": 1100000,
  "result": "SUCCESS",
  "resMessage": "<string>",
  "receipt": {
    "energy_usage": 65000,
    "energy_fee": 1100000,
    "net_usage": 345,
    "net_fee": 0
  },
  "log": [
    {
      "address": "<string>",
      "topics": [
        "<string>"
      ],
      "data": "<string>"
    }
  ]
}
TRON API method that retrieves transaction execution information by transaction ID from solidified blocks. This method queries confirmed and finalized blockchain state, providing reliable transaction execution details that cannot be rolled back.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • value — the transaction ID (hash) in hexadecimal format

Response

Returns detailed transaction execution information including:
  • id — the transaction hash
  • blockNumber — block number containing the transaction
  • blockTimeStamp — block timestamp
  • contractResult — contract execution results
  • fee — transaction fee paid
  • result — transaction execution result (SUCCESS/REVERT)
  • resMessage — result message if failed
  • receipt — transaction receipt with resource usage
  • log — event logs generated by the transaction

Use case

The walletsolidity/gettransactioninfobyid method is used for:
  • Retrieving confirmed transaction execution results from solidified blockchain state
  • Analyzing gas usage and fees for finalized transactions
  • Monitoring contract execution outcomes using reliable data
  • Building applications that require confirmed transaction execution information

Body

application/json
value
string
required

Transaction ID (hash) in hexadecimal format

Example:

"7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b"

Response

200 - application/json

Transaction execution information from solidified blocks

id
string

Transaction hash identifier

Example:

"7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b"

blockNumber
integer

Block number containing the transaction

Example:

70000000

blockTimeStamp
integer

Block timestamp

Example:

1704067200000

contractResult
string[]

Contract execution results

fee
integer

Transaction fee paid in sun

Example:

1100000

result
enum<string>

Transaction execution result

Available options:
SUCCESS,
REVERT,
OUT_OF_TIME,
OUT_OF_ENERGY
Example:

"SUCCESS"

resMessage
string

Result message if transaction failed

receipt
object

Transaction receipt with resource usage

log
object[]

Event logs generated by the transaction