TryFromTransactionResponse

Trait TryFromTransactionResponse 

Source
pub trait TryFromTransactionResponse<N: Network> {
    type Error: Error + Send + Sync + Unpin;

    // Required method
    fn from_transaction_response(
        transaction_response: N::TransactionResponse,
    ) -> Result<Self, Self::Error>
       where Self: Sized;
}
Expand description

Trait for converting network transaction responses to primitive transaction types.

Required Associated Types§

Source

type Error: Error + Send + Sync + Unpin

The error type returned if the conversion fails.

Required Methods§

Source

fn from_transaction_response( transaction_response: N::TransactionResponse, ) -> Result<Self, Self::Error>
where Self: Sized,

Converts a network transaction response to a primitive transaction type.

§Returns

Returns Ok(Self) on successful conversion, or Err(Self::Error) if the conversion fails.

Implementations on Foreign Types§

Source§

impl TryFromTransactionResponse<Ethereum> for TransactionSigned

Source§

type Error = Infallible

Source§

fn from_transaction_response( transaction_response: Transaction, ) -> Result<Self, Self::Error>

Source§

impl TryFromTransactionResponse<Optimism> for OpTransactionSigned

Available on crate feature op only.
Source§

type Error = Infallible

Source§

fn from_transaction_response( transaction_response: Transaction, ) -> Result<Self, Self::Error>

Implementors§