POSTeth_getTransactionReceipt

Tron Mainnethttps://tron-mainnet.nodit.io/

Returns the receipt information by transaction hash. It lets you check the execution result, the energy consumed, and the event logs emitted.

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
paramsoneOf[]required

It contains following parameter in order:

  1. txHash: The hash of the transaction to look up. (required)
params[0]string

The hash of the transaction to look up. The 0x prefix is optional, and the value must consist of 64 hexadecimal characters.

Responses
transactionHashstring

The transaction hash.

transactionIndexstring

The transaction index within the block.

blockHashstring

The hash of the block containing the transaction.

blockNumberstring

The number of the block containing the transaction.

fromstring

The address of the account that sent the transaction.

tostring

The address of the account or contract that received the transaction.

contractAddressstring

The address of the created contract when the transaction created one. Otherwise it is null.

gasUsedstring

The energy consumed by this transaction.

cumulativeGasUsedstring

The cumulative energy consumed in the block up to this transaction.

effectiveGasPricestring

The energy price actually applied, in sun.

addressstring

The address of the contract that emitted the log.

topicsstring[]

The list of log topics. The first entry is the event signature hash.

datastring

The ABI-encoded data for the non-indexed event arguments.

blockNumberstring

The number of the block containing the log.

blockHashstring

The hash of the block containing the log.

blockTimestampstring

The creation time of the block containing the log, in UNIX epoch seconds, hex-encoded. It is returned on GreatVoyage-v4.8.2 and later, and may be omitted on gateways that have not been upgraded yet.

transactionHashstring

The hash of the transaction that emitted the log.

transactionIndexstring

The transaction index within the block.

logIndexstring

The log index within the block.

removedboolean

Whether the log was removed by a chain reorganization.

logsBloomstring

The Bloom filter used to search event logs.

statusstring

The execution result of the transaction. 0x1 for success, 0x0 for failure.

typestring

The transaction type. TRON returns 0x0.

X-API-KEY
RequestCU16
cURL
curl -X POST "https://tron-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getTransactionReceipt",
  "params": [
    "0xc9af231ad59bcd7e8dcf827afd45020a02112704dce74ec5f72cb090aa07eef0"
  ]
}'
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "transactionHash": "0xc9af231ad59bcd7e8dcf827afd45020a02112704dce74ec5f72cb090aa07eef0",
    "transactionIndex": "0x6",
    "blockHash": "0x00000000020ef11c87517739090601aa0a7be1de6faebf35ddb14e7ab7d1cc5b",
    "blockNumber": "0x20ef11c",
    "from": "0x6eced5214d62c3bc9eaa742e2f86d5c516785e14",
    "to": "0x0697250b9d73b460a9d2bbfd8c4cacebb05dd1f1",
    "contractAddress": null,
    "gasUsed": "0x0",
    "cumulativeGasUsed": "0x646e2",
    "effectiveGasPrice": "0x8c",
    "logs": [],
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000",
    "status": "0x1",
    "type": "0x0"
  }
}