[][src]Trait frame_system::offchain::SendUnsignedTransaction

pub trait SendUnsignedTransaction<T: SigningTypes + SendTransactionTypes<LocalCall>, LocalCall> {
    type Result;
    pub 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>
; pub fn submit_unsigned_transaction(
        &self,
        call: LocalCall
    ) -> Option<Result<(), ()>> { ... } }

Submit an unsigned transaction onchain with a signed payload

Associated Types

type Result[src]

A submission result.

Should contain the submission result and the account(s) that signed the payload.

Loading content...

Required methods

pub 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]

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 a SignedPayload object.
  • f2 is then called with the SignedPayload returned by f and the signature and is expected to return a Call object to be embedded into transaction.
Loading content...

Provided methods

pub fn submit_unsigned_transaction(
    &self,
    call: LocalCall
) -> Option<Result<(), ()>>
[src]

Submits an unsigned call to the transaction pool.

Loading content...

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<(), ()>)>

impl<T: SigningTypes + SendTransactionTypes<LocalCall>, C: AppCrypto<T::Public, T::Signature>, LocalCall> SendUnsignedTransaction<T, LocalCall> for Signer<T, C, ForAny>[src]

type Result = Option<(Account<T>, Result<(), ()>)>

Loading content...