Skip to main content

FromAnyRpcTransaction

Trait FromAnyRpcTransaction 

Source
pub trait FromAnyRpcTransaction: Sized {
    // Required method
    fn from_any_rpc_transaction(tx: &AnyRpcTransaction) -> Result<Self>;
}
Expand description

Trait for converting an [AnyRpcTransaction] into a specific TxEnv.

Ethereum envelopes delegate to [FromRecoveredTx]. Implementations may also explicitly project compatible network-specific envelopes into their execution environment.

Required Methods§

Source

fn from_any_rpc_transaction(tx: &AnyRpcTransaction) -> Result<Self>

Tries to convert an [AnyRpcTransaction] into Self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FromAnyRpcTransaction for BaseTransaction<TxEnv>

Available on crate feature base only.
Source§

fn from_any_rpc_transaction(tx: &AnyRpcTransaction) -> Result<Self>

Source§

impl FromAnyRpcTransaction for OpTx

Available on crate feature optimism only.
Source§

fn from_any_rpc_transaction(tx: &AnyRpcTransaction) -> Result<Self>

Source§

impl FromAnyRpcTransaction for TempoTxEnv

Source§

fn from_any_rpc_transaction(tx: &AnyRpcTransaction) -> Result<Self>

Source§

impl FromAnyRpcTransaction for TxEnv

Source§

fn from_any_rpc_transaction(tx: &AnyRpcTransaction) -> Result<Self>

Implementors§