Trait alloy::network::ReceiptResponse

source ·
pub trait ReceiptResponse {
    // Required methods
    fn contract_address(&self) -> Option<Address>;
    fn status(&self) -> bool;
}
Available on crate feature network only.
Expand description

A receipt response.

This is distinct from TxReceipt, since this is for JSON-RPC receipts.

Required Methods§

source

fn contract_address(&self) -> Option<Address>

Address of the created contract, or None if the transaction was not a deployment.

source

fn status(&self) -> bool

Status of the transaction.

§Note

Caution must be taken when using this method for deep-historical receipts, as it may not accurately reflect the status of the transaction. The transaction status is not knowable from the receipt for transactions before EIP-658.

This can be handled using TxReceipt::status_or_post_state.

Implementors§