Skip to main content

Documentation Index

Fetch the complete documentation index at: https://base-a060aa97-mux-base-docs-codex-moly1dzt.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Returns the receipt for a transaction by its hash. On Standard RPC endpoints, receipts are available after a transaction is included in a sealed block. On Flashblocks RPC endpoints, this method can return preconfirmed receipt data from the Flashblocks cache before the block seals.
Preconfirmed receipts are reorg-able until the full L2 block seals. This method does not accept a pending parameter; Flashblocks behavior is selected by using a Flashblocks RPC endpoint. See the RPC Overview for the canonical method matrix.

Parameters

transactionHash
string
required
The 32-byte transaction hash.

Returns

result
object | null
The transaction receipt object, or null if the transaction was not found. On Flashblocks endpoints, the result can be a preconfirmed receipt from the Flashblocks cache.

Error Codes

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

Flashblock-Specific Response Fields

Before Azul, the Flashblocks infrastructure stream included pre-confirmed receipt data inside the metadata.receipts object of each Flashblock payload before the block sealed. Azul removes receipts from the raw WebSocket payload. Applications should use Flashblocks RPC by-hash lookups or subscriptions instead of depending on raw stream receipt payloads.
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
}