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

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