referrerpolicy=no-referrer-when-downgrade

Trait frame_system::offchain::CreateSignedTransaction

source ·
pub trait CreateSignedTransaction<LocalCall>: CreateTransactionBase<LocalCall> + SigningTypes {
    // Required method
    fn create_signed_transaction<C: AppCrypto<Self::Public, Self::Signature>>(
        call: <Self as CreateTransactionBase<LocalCall>>::RuntimeCall,
        public: Self::Public,
        account: Self::AccountId,
        nonce: Self::Nonce,
    ) -> Option<Self::Extrinsic>;
}
Expand description

Interface for creating an old-school signed transaction.

Required Methods§

source

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

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§