Trait substrate_subxt::Signer[][src]

pub trait Signer<T: Runtime> {
    fn account_id(&self) -> &T::AccountId;
fn nonce(&self) -> Option<T::Index>;
fn sign(
        &self,
        extrinsic: SignedPayload<T>
    ) -> Pin<Box<dyn Future<Output = Result<UncheckedExtrinsic<T>, String>> + Send>>; }

Extrinsic signer.

Required methods

fn account_id(&self) -> &T::AccountId[src]

Returns the account id.

fn nonce(&self) -> Option<T::Index>[src]

Optionally returns a nonce.

fn sign(
    &self,
    extrinsic: SignedPayload<T>
) -> Pin<Box<dyn Future<Output = Result<UncheckedExtrinsic<T>, String>> + Send>>
[src]

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.

Loading content...

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,
    P: Pair + 'static,
    P::Signature: Into<T::Signature> + 'static, 
[src]

Loading content...