Docs

wallet/gettransactioninfobyid - Get TRON Receipt

Get detailed TRON transaction information including receipt, logs, and energy/bandwidth usage via Dwellir's high-performance RPC endpoint.

Get detailed transaction information including receipt and logs by transaction ID.

Endpoint

Text
POST /wallet/gettransactioninfobyid

Request Parameters

Request
valuestring

Required parameter: Transaction ID (hex string)

Response Body

Response
resultOBJECT

`id` - Transaction ID `fee` - Transaction fee in SUN `blockNumber` - Block height `blockTimeStamp` - Block timestamp `contractResult` - Contract execution result `contract_address` - Contract address (for contract creation) `receipt` - Transaction receipt with energy and bandwidth usage `log` - Transaction logs from smart contract events `result` - Transaction result ("SUCCESS" or error) `resMessage` - Result message (if any)

Implementation Examples

Bash
curl -X POST https://api-tron-mainnet.n.dwellir.com/YOUR_API_KEY/wallet/gettransactioninfobyid \
  -H "Content-Type: application/json" \
  -d '{
    "value": "2668be54c278d702eebde274a58cfae3ea50c72c76a885df48c6d456d7ec38b5"
  }'

Use Cases

  • Transaction Confirmation: Get detailed receipt after broadcasting
  • Event Monitoring: Access smart contract event logs
  • Fee Tracking: Monitor energy and bandwidth consumption
  • Debug Failures: Analyze failed transaction reasons
  • DApp Integration: Verify transaction results in applications