SignableTxRequest

Trait SignableTxRequest 

pub trait SignableTxRequest<T>:
    Send
    + Sync
    + 'static {
    // Required method
    fn try_build_and_sign(
        self,
        signer: impl TxSigner<Signature> + Send,
    ) -> impl Future<Output = Result<T, SignTxRequestError>> + Send;
}
Expand description

An abstraction over transaction requests that can be signed.

Required Methods§

fn try_build_and_sign( self, signer: impl TxSigner<Signature> + Send, ) -> impl Future<Output = Result<T, SignTxRequestError>> + Send

Attempts to build a transaction request and sign it with the given signer.

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§

§

impl SignableTxRequest<OpTxEnvelope> for OpTransactionRequest

§

async fn try_build_and_sign( self, signer: impl TxSigner<Signature> + Send, ) -> Result<OpTxEnvelope, SignTxRequestError>

Implementors§

§

impl SignableTxRequest<EthereumTxEnvelope<TxEip4844>> for TransactionRequest