Trait frame_system::offchain::SendSignedTransaction[][src]

pub trait SendSignedTransaction<T: SigningTypes + CreateSignedTransaction<LocalCall>, C: AppCrypto<T::Public, T::Signature>, LocalCall> {
    type Result;
    fn send_signed_transaction(
        &self,
        f: impl Fn(&Account<T>) -> LocalCall
    ) -> Self::Result; fn send_single_signed_transaction(
        &self,
        account: &Account<T>,
        call: LocalCall
    ) -> Option<Result<(), ()>> { ... } }

Submit a signed transaction to the transaction pool.

Associated Types

type Result[src]

A submission result.

This should contain an indication of success and the account that was used for signing.

Loading content...

Required methods

fn send_signed_transaction(
    &self,
    f: impl Fn(&Account<T>) -> LocalCall
) -> Self::Result
[src]

Submit a signed transaction to the local pool.

Given f closure will be called for every requested account and expects a Call object to be returned. The call is then wrapped into a transaction (see #CreateSignedTransaction), signed and submitted to the pool.

Loading content...

Provided methods

fn send_single_signed_transaction(
    &self,
    account: &Account<T>,
    call: LocalCall
) -> Option<Result<(), ()>>
[src]

Wraps the call into transaction, signs using given account and submits to the pool.

Loading content...

Implementors

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

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

impl<T: SigningTypes + CreateSignedTransaction<LocalCall>, C: AppCrypto<T::Public, T::Signature>, LocalCall> SendSignedTransaction<T, C, LocalCall> for Signer<T, C, ForAll>[src]

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

Loading content...