wait_transaction

Function wait_transaction 

Source
pub async fn wait_transaction(
    rpc_url: &str,
    tx_hash: FixedBytes<32>,
) -> Result<TransactionReceipt, PendingTransactionError>
Expand description

Wait for a transaction to finish and return its receipt.

§Arguments

rpc_url - The RPC URL. tx_hash - The hash of the transaction.

§Returns

A [TransportResult] containing the transaction hash.