Skip to main content

eth_getBlockReceipts

POST

Queries all transaction receipts contained in a specified block.
param[0]
blockIdentifierstringrequired
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.
The list of event logs emitted by the transaction.
addressstring
The address of the contract that emitted the log.
topicsarray
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.
codestringrequired
Code identifying the cause of the failed request.
messagestringrequired
Detailed message including the name and value of the invalid parameter.
{
"code": "ERROR_CODE",
"message": "Unauthorized"
}
cURL
curl -X POST 'https://tron-mainnet.nodit.io' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: nodit-demo' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getBlockReceipts",
"params": [
"0x20ef11c"
]
}'