Skip to main content

FromAnyRpcTransaction

Trait FromAnyRpcTransaction 

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

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

Implementations extract the inner [alloy_consensus::TxEnvelope] via as_envelope() then delegate to [FromRecoveredTx].

Required Methods§

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

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§

§

impl FromAnyRpcTransaction for OpTx

§

fn from_any_rpc_transaction(tx: &AnyRpcTransaction) -> Result<OpTx, Report>

§

impl FromAnyRpcTransaction for TempoTxEnv

§

fn from_any_rpc_transaction( tx: &AnyRpcTransaction, ) -> Result<TempoTxEnv, Report>

Implementors§