POSTeth_getBlockReceipts

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

Queries all transaction receipts contained in a specified block.

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
paramsoneOf[]required

It contains following parameter in order:

  1. blockIdentifier: A block number, block hash, or tag. (required)
    • Block number: a decimal value or a 0x-prefixed hexadecimal value
    • Block hash: a 32-byte hash (the 0x prefix may be omitted)
    • Tag: latest, earliest or finalized (pending and safe are unsupported)
params[0]string

Specifies the block to query. Pass a block number, a block hash, or a tag. Only the latest, earliest and finalized tags are supported; pending and safe cannot be used.

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
RequestCU28
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_getBlockReceipts",
  "params": [
    "0x20ef11c"
  ]
}'
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": [],
      "status": "0x1",
      "type": "0x0"
    }
  ]
}