[−][src]Trait frame_system::offchain::CreateTransaction
Creates a runtime-specific signed transaction.
Associated Types
type Public: IdentifyAccount<AccountId = T::AccountId> + Clone
A Public
key representing a particular AccountId
.
type Signature
A Signature
generated by the Signer
.
Required methods
fn create_transaction<F: Signer<Self::Public, Self::Signature>>(
call: Extrinsic::Call,
public: Self::Public,
account: T::AccountId,
nonce: T::Index
) -> Option<(Extrinsic::Call, Extrinsic::SignaturePayload)>
call: Extrinsic::Call,
public: Self::Public,
account: T::AccountId,
nonce: T::Index
) -> Option<(Extrinsic::Call, Extrinsic::SignaturePayload)>
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).