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§
Sourcefn 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>
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).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.