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

transactionHash
string
required
The 32-byte transaction hash.

Returns

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

Error Codes

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

Example