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
id
— transaction ID (hash)blockNumber
— block number where the transaction was includedblockTimeStamp
— timestamp when the block was created (milliseconds)contractResult
— array of smart contract execution results in hex formatcontract_address
— address of the deployed contract (for contract creation transactions)receipt
— transaction receipt containing:energy_usage
— total energy consumed by the transactionenergy_fee
— energy fee paid in SUN (1 TRX = 1,000,000 SUN)origin_energy_usage
— original energy usage before optimizationsenergy_usage_total
— total energy usage including all operationsnet_usage
— bandwidth consumed by the transactionnet_fee
— bandwidth fee paid in SUNresult
— execution result status (SUCCESS, REVERT, etc.)
log
— array of event logs emitted by smart contracts during executionresult
— overall transaction execution resultresMessage
— error message if transaction failed (hex-encoded)
Use case
Thewallet/gettransactioninfobyid
method is used for:
- Getting detailed transaction execution information and resource consumption data.
- Monitoring transaction success/failure status and error messages.
- Analyzing smart contract execution results and event logs.
- Calculating actual fees paid for energy and bandwidth usage.
- Building transaction explorers and analytics tools that need execution details.
- Debugging smart contract interactions by examining logs and results.
Body
application/json
The transaction ID (hash) in hexadecimal format
Response
200 - application/json
Transaction receipt and execution information
Transaction ID
Block number where transaction was included
Block timestamp in milliseconds
Smart contract execution results
Contract address if contract creation transaction
Event logs from smart contract execution
Overall transaction result status
Result message if transaction failed