pub struct Web3Signer {
pub client: ReqwestClient,
pub address: Address,
}Expand description
A signer that sends an RPC request to sign a transaction remotely
Implements eth_signTransaction method of Consensys Web3 Signer
Reference: https://docs.web3signer.consensys.io/reference/api/json-rpc#eth_signtransaction
Fields§
§client: ReqwestClientClient used to send an RPC request
address: AddressAddress of the account that intends to sign a transaction.
It must match the from field in the transaction.
Implementations§
Trait Implementations§
Source§impl Debug for Web3Signer
impl Debug for Web3Signer
Source§impl TxSigner<Signature> for Web3Signer
impl TxSigner<Signature> for Web3Signer
Source§fn sign_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
tx: &'life1 mut dyn SignableTransaction<Signature>,
) -> Pin<Box<dyn Future<Output = Result<Signature>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sign_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
tx: &'life1 mut dyn SignableTransaction<Signature>,
) -> Pin<Box<dyn Future<Output = Result<Signature>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Asynchronously sign an unsigned transaction.
Auto Trait Implementations§
impl !RefUnwindSafe for Web3Signer
impl !UnwindSafe for Web3Signer
impl Freeze for Web3Signer
impl Send for Web3Signer
impl Sync for Web3Signer
impl Unpin for Web3Signer
impl UnsafeUnpin for Web3Signer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.