SignableTxRequest

Trait SignableTxRequest 

Source
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§

Source

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§

Source§

impl SignableTxRequest<EthereumTxEnvelope<TxEip4844>> for TransactionRequest

Source§

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

Source§

impl SignableTxRequest<OpTxEnvelope> for OpTransactionRequest

Available on crate feature op only.
Source§

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

Implementors§