Skip to main content

Module receipts

Module receipts 

Source

Re-exportsยง

use alloy_chains::Chain; ๐Ÿ”’
use alloy_chains::NamedChain; ๐Ÿ”’
use alloy_network::Network; ๐Ÿ”’
use alloy_network::ReceiptResponse; ๐Ÿ”’
use alloy_primitives::TxHash; ๐Ÿ”’
use alloy_primitives::U256; ๐Ÿ”’
use alloy_primitives::utils::format_units; ๐Ÿ”’
use alloy_provider::PendingTransactionBuilder; ๐Ÿ”’
use alloy_provider::PendingTransactionError; ๐Ÿ”’
use alloy_provider::Provider; ๐Ÿ”’
use alloy_provider::RootProvider; ๐Ÿ”’
use alloy_provider::WatchTxError; ๐Ÿ”’
use eyre::Result; ๐Ÿ”’
use eyre::eyre; ๐Ÿ”’
use forge_script_sequence::ScriptSequence; ๐Ÿ”’
use foundry_common::retry; ๐Ÿ”’
use foundry_common::retry::RetryError; ๐Ÿ”’
use foundry_common::shell; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’

Structsยง

PendingReceiptError
Marker error type for pending receipts

Enumsยง

TxStatus
Convenience enum for internal signalling of transaction status

Functionsยง

check_tx_status
Checks the status of a txhash by first polling for a receipt, then for mempool inclusion. Returns the tx hash, and a status
check_tx_status_once
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.
format_receipt
Prints parts of the receipt to stdout
is_mined_receipt_for ๐Ÿ”’
Returns true if receipt is a mined receipt for hash.