Type Alias polymesh_api_client::signer::DefaultSigner
source · pub type DefaultSigner = PairSigner<Pair>;
Aliased Type§
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 copy 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(&self) -> Option<u32>
fn nonce(&self) -> Option<u32>
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(&mut self, nonce: u32)
fn set_nonce(&mut self, nonce: u32)
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.