Skip to main content

check_tx_status_once

Function check_tx_status_once 

Source
pub async fn check_tx_status_once<N: Network>(
    provider: &RootProvider<N>,
    hash: TxHash,
    confirmations: u64,
) -> Option<TxStatus<N::ReceiptResponse>>
Expand description

Checks the status of a txhash once without waiting. Returns None while the transaction is still known to the node but has no receipt with the requested confirmations.