[−][src]Trait frame_system::offchain::SendUnsignedTransaction
Submit an unsigned transaction onchain with a signed payload
Associated Types
type Result
A submission result.
Should contain the submission result and the account(s) that signed the payload.
Required methods
fn send_unsigned_transaction<TPayload, F>(
&self,
f: F,
f2: impl Fn(TPayload, T::Signature) -> LocalCall
) -> Self::Result where
F: Fn(&Account<T>) -> TPayload,
TPayload: SignedPayload<T>,
&self,
f: F,
f2: impl Fn(TPayload, T::Signature) -> LocalCall
) -> Self::Result where
F: Fn(&Account<T>) -> TPayload,
TPayload: SignedPayload<T>,
Send an unsigned transaction with a signed payload.
This method takes f
and f2
where:
f
is called for every account and is expected to return aSignedPayload
object.f2
is then called with theSignedPayload
returned byf
and the signature and is expected to return aCall
object to be embedded into transaction.
Provided methods
fn submit_unsigned_transaction(&self, call: LocalCall) -> Option<Result<(), ()>>
Submits an unsigned call to the transaction pool.
Implementors
impl<T: SigningTypes + SendTransactionTypes<LocalCall>, C: AppCrypto<T::Public, T::Signature>, LocalCall> SendUnsignedTransaction<T, LocalCall> for Signer<T, C, ForAll>
[src]
type Result = Vec<(Account<T>, Result<(), ()>)>
fn send_unsigned_transaction<TPayload, F>(
&self,
f: F,
f2: impl Fn(TPayload, T::Signature) -> LocalCall
) -> Self::Result where
F: Fn(&Account<T>) -> TPayload,
TPayload: SignedPayload<T>,
[src]
&self,
f: F,
f2: impl Fn(TPayload, T::Signature) -> LocalCall
) -> Self::Result where
F: Fn(&Account<T>) -> TPayload,
TPayload: SignedPayload<T>,