Skip to main content
Returns the receipt for a transaction by its hash. Returns null for transactions that are pending or have not been mined.
Receipts are only available for mined transactions. To monitor a transaction before it is sealed, use base_transactionStatus to confirm it is in the mempool, or subscribe to newFlashblockTransactions to detect its pre-confirmation in a Flashblock.

Parameters

transactionHash
string
required
The 32-byte transaction hash.

Returns

result
object | null
The transaction receipt object, or null if the transaction has not been mined.

Error Codes

CodeMessageDescription
-32000transaction indexing is in progressThe node is still indexing transactions. Retry after the node has finished syncing.

Flashblock-Specific Response Fields

The Flashblocks infrastructure stream includes pre-confirmed receipt data inside the metadata.receipts object of each Flashblock payload before the block seals. This abbreviated receipt matches the full receipt shape:
FieldFlashblock metadata.receipts[hash]
typeTransaction type (0x0, 0x1, 0x2, 0x7e)
status"0x1" success / "0x0" failure
cumulativeGasUsedCumulative gas in block to this transaction
logsEmitted log objects
logsBloomBloom filter
transactionIndexIndex in block

Example

{
  "jsonrpc": "2.0",
  "method": "eth_getTransactionReceipt",
  "params": ["0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"],
  "id": 1
}