TryFromTransactionResponse

Trait TryFromTransactionResponse 

pub trait TryFromTransactionResponse<N>
where N: Network,
{ type Error: Error + Send + Sync + Unpin; // Required method fn from_transaction_response( transaction_response: <N as Network>::TransactionResponse, ) -> Result<Self, Self::Error> where Self: Sized; }
Expand description

Trait for converting network transaction responses to primitive transaction types.

Required Associated Types§

type Error: Error + Send + Sync + Unpin

The error type returned if the conversion fails.

Required Methods§

fn from_transaction_response( transaction_response: <N as Network>::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§

§

impl TryFromTransactionResponse<Ethereum> for EthereumTxEnvelope<TxEip4844>

§

type Error = Infallible

§

fn from_transaction_response( transaction_response: Transaction, ) -> Result<EthereumTxEnvelope<TxEip4844>, <EthereumTxEnvelope<TxEip4844> as TryFromTransactionResponse<Ethereum>>::Error>

§

impl TryFromTransactionResponse<Optimism> for OpTxEnvelope

§

type Error = Infallible

§

fn from_transaction_response( transaction_response: Transaction, ) -> Result<OpTxEnvelope, <OpTxEnvelope as TryFromTransactionResponse<Optimism>>::Error>

Implementors§