TryIntoSimTx

Trait TryIntoSimTx 

Source
pub trait TryIntoSimTx<T>
where Self: Sized,
{ // Required method fn try_into_sim_tx(self) -> Result<T, ValueError<Self>>; }
Expand description

Converts self into T.

Should create a fake transaction for simulation using [TransactionRequest].

Required Methods§

Source

fn try_into_sim_tx(self) -> Result<T, ValueError<Self>>

Performs the conversion.

Should return a signed typed transaction envelope for the eth_simulateV1 endpoint with a dummy signature or an error if required fields are missing.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TryIntoSimTx<EthereumTxEnvelope<TxEip4844>> for TransactionRequest

Source§

fn try_into_sim_tx( self, ) -> Result<EthereumTxEnvelope<TxEip4844>, ValueError<Self>>

Source§

impl TryIntoSimTx<OpTxEnvelope> for OpTransactionRequest

Available on crate feature op only.
Source§

fn try_into_sim_tx(self) -> Result<OpTxEnvelope, ValueError<Self>>

Implementors§