wait_for_tx

Function wait_for_tx 

Source
pub async fn wait_for_tx(
    node: &(impl AztecNode + ?Sized),
    tx_hash: &TxHash,
    opts: WaitOpts,
) -> Result<TxReceipt, Error>
Expand description

Wait for a transaction to reach a terminal status by polling get_tx_receipt.

By default, waits until Checkpointed or higher. Set opts.wait_for_status to target a different status. Returns early with an error on Dropped (after the grace period) or reverted execution results (unless opts.dont_throw_on_revert is set).