diff --git a/ethers-providers/src/pending_transaction.rs b/ethers-providers/src/pending_transaction.rs index 05298a25..0e1a8bef 100644 --- a/ethers-providers/src/pending_transaction.rs +++ b/ethers-providers/src/pending_transaction.rs @@ -85,6 +85,11 @@ impl<'a, P: JsonRpcClient> PendingTransaction<'a, P> { self.provider.clone() } + /// Returns the transaction hash of the pending transaction + pub fn tx_hash(&self) -> TxHash { + self.tx_hash + } + /// Sets the number of confirmations for the pending transaction to resolve /// to a receipt #[must_use]