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.
Denim: The planned Denim upgrade replaces Flashblocks with canonical 200ms blocks. After Denim activates, Flashblocks subscriptions such as newFlashblockTransactions and Flashblocks preconfirmation state are unavailable. To update your integration, see Migrate From Flashblocks. For activation status, see the Denim overview.

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