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.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.
Parameters
The 32-byte transaction hash.
Returns
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
| Code | Message | Description |
|---|---|---|
-32000 | transaction indexing is in progress | The 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 themetadata.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.
| Field | Flashblock metadata.receipts[hash] |
|---|---|
type | Transaction type (0x0, 0x1, 0x2, 0x7e) |
status | "0x1" success / "0x0" failure |
cumulativeGasUsed | Cumulative gas in block to this transaction |
logs | Emitted log objects |
logsBloom | Bloom filter |
transactionIndex | Index in block |