pub type DefaultSigner = PairSigner<Pair>;
Aliased Type§
pub struct DefaultSigner {
pub pair: Pair,
pub nonce: u32,
pub account: AccountId,
}
Fields§
§pair: Pair
§nonce: u32
§account: AccountId
Implementations
Source§impl<P> PairSigner<P>where
P: KeypairSigner,
impl<P> PairSigner<P>where
P: KeypairSigner,
Trait Implementations
Source§impl<P: Clone + KeypairSigner + Clone> Clone for PairSigner<P>
impl<P: Clone + KeypairSigner + Clone> Clone for PairSigner<P>
Source§fn clone(&self) -> PairSigner<P>
fn clone(&self) -> PairSigner<P>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<P: KeypairSigner> Signer for PairSigner<P>
impl<P: KeypairSigner> Signer for PairSigner<P>
fn account(&self) -> AccountId
Source§fn nonce<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<u32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn nonce<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<u32>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Optional - The signer can manage their
nonce
for improve transaction performance.
The default implmentation will query the next nonce
from chain storage.Source§fn set_nonce<'life0, 'async_trait>(
&'life0 mut self,
nonce: u32,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_nonce<'life0, 'async_trait>(
&'life0 mut self,
nonce: u32,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Optional - The signer can manage their
nonce
for improve transaction performance.
If the transaction is accepted by the RPC node, then the nonce
we be increased, to
allow the next transaction to be signed & submitted without waiting for the next block.