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§
Sourcefn try_into_sim_tx(self) -> Result<T, ValueError<Self>>
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
impl TryIntoSimTx<EthereumTxEnvelope<TxEip4844>> for TransactionRequest
fn try_into_sim_tx( self, ) -> Result<EthereumTxEnvelope<TxEip4844>, ValueError<Self>>
Source§impl TryIntoSimTx<OpTxEnvelope> for OpTransactionRequest
Available on crate feature op
only.
impl TryIntoSimTx<OpTxEnvelope> for OpTransactionRequest
Available on crate feature
op
only.