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§
Required Methods§
Sourcefn from_transaction_response(
transaction_response: <N as Network>::TransactionResponse,
) -> Result<Self, Self::Error>where
Self: Sized,
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§
Source§impl TryFromTransactionResponse<Ethereum> for EthereumTxEnvelope<TxEip4844>
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>
Source§impl TryFromTransactionResponse<Optimism> for OpTxEnvelope
Available on crate feature op only.
impl TryFromTransactionResponse<Optimism> for OpTxEnvelope
Available on crate feature
op only.