[−][src]Trait substrate_subxt::extrinsic::Signer
Extrinsic signer.
Required methods
fn account_id(&self) -> &T::AccountId
Returns the account id.
fn nonce(&self) -> Option<T::Index>
Optionally returns a nonce.
fn sign(
&self,
extrinsic: SignedPayload<T>
) -> Pin<Box<dyn Future<Output = Result<UncheckedExtrinsic<T>, String>> + Send + Sync>>
&self,
extrinsic: SignedPayload<T>
) -> Pin<Box<dyn Future<Output = Result<UncheckedExtrinsic<T>, String>> + Send + Sync>>
Takes an unsigned extrinsic and returns a signed extrinsic.
Some signers may fail, for instance because the hardware on which the keys are located has refused the operation.
Implementors
impl<T, P> Signer<T> for PairSigner<T, P> where
T: Runtime,
T::AccountId: Into<T::Address> + 'static,
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
P: Pair + 'static,
P::Signature: Into<T::Signature> + 'static,
[src]
T: Runtime,
T::AccountId: Into<T::Address> + 'static,
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
P: Pair + 'static,
P::Signature: Into<T::Signature> + 'static,