referrerpolicy=no-referrer-when-downgrade
pub trait CreateSignedTransaction<LocalCall>: CreateTransactionBase<LocalCall> + SigningTypes {
    // Required method
    fn create_signed_transaction<C>(
        call: Self::RuntimeCall,
        public: Self::Public,
        account: Self::AccountId,
        nonce: Self::Nonce,
    ) -> Option<Self::Extrinsic>
       where C: AppCrypto<Self::Public, Self::Signature>;
}
Expand description

Interface for creating an old-school signed transaction.

Required Methods§

fn create_signed_transaction<C>( call: Self::RuntimeCall, public: Self::Public, account: Self::AccountId, nonce: Self::Nonce, ) -> Option<Self::Extrinsic>
where C: AppCrypto<Self::Public, Self::Signature>,

Attempt to create signed extrinsic data that encodes call from given account.

Runtime implementation is free to construct the payload to sign and the signature in any way it wants. Returns None if signed extrinsic could not be created (either because signing failed or because of any other runtime-specific reason).

Object Safety§

This trait is not object safe.

Implementors§