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. Base produces a canonical block every 200ms, so a receipt is available once the transaction is included in one of those blocks. To detect inclusion as it happens, subscribe to eth_subscribe("newHeads") and fetch transactions for each canonical block.
Since Denim, Base produces a canonical block every 200ms and Flashblocks are retired, so newFlashblockTransactions and Flashblocks preconfirmation state are unavailable. See Migrate From Flashblocks.

Parameters

string
required
The 32-byte transaction hash.

Returns

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

Error Codes

Example