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§
Sourcefn try_build_and_sign(
self,
signer: impl TxSigner<Signature> + Send,
) -> impl Future<Output = Result<T, SignTxRequestError>> + Send
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
impl SignableTxRequest<EthereumTxEnvelope<TxEip4844>> for TransactionRequest
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.
impl SignableTxRequest<OpTxEnvelope> for OpTransactionRequest
Available on crate feature
op
only.