Skip to main content

check_tx_status

Function check_tx_status 

Source
pub async fn check_tx_status<N: Network>(
    provider: &RootProvider<N>,
    hash: TxHash,
    timeout: u64,
) -> (TxHash, Result<TxStatus<N::ReceiptResponse>, Report>)
Expand description

Checks the status of a txhash by first polling for a receipt, then for mempool inclusion. Returns the tx hash, and a status