Trait alloy_network::TransactionResponse

source ·
pub trait TransactionResponse {
    // Required methods
    fn tx_hash(&self) -> TxHash;
    fn from(&self) -> Address;
    fn to(&self) -> Option<Address>;
    fn value(&self) -> U256;
    fn gas(&self) -> u128;
}
Expand description

Transaction Response

This is distinct from Transaction, since this is a JSON-RPC response.

Required Methods§

source

fn tx_hash(&self) -> TxHash

Hash of the transaction

source

fn from(&self) -> Address

Sender of the transaction

source

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

Recipient of the transaction

source

fn value(&self) -> U256

Transferred value

source

fn gas(&self) -> u128

Gas limit

Implementations on Foreign Types§

source§

impl TransactionResponse for Transaction

source§

fn tx_hash(&self) -> B256

source§

fn from(&self) -> Address

source§

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

source§

fn value(&self) -> U256

source§

fn gas(&self) -> u128

source§

impl TransactionResponse for WithOtherFields<Transaction>

source§

fn tx_hash(&self) -> B256

source§

fn from(&self) -> Address

source§

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

source§

fn value(&self) -> U256

source§

fn gas(&self) -> u128

Implementors§