Trait frame_system::offchain::SendSignedTransaction
source · pub trait SendSignedTransaction<T: SigningTypes + CreateSignedTransaction<LocalCall>, C: AppCrypto<T::Public, T::Signature>, LocalCall> {
type Result;
// Required method
fn send_signed_transaction(
&self,
f: impl Fn(&Account<T>) -> LocalCall,
) -> Self::Result;
// Provided method
fn send_single_signed_transaction(
&self,
account: &Account<T>,
call: LocalCall,
) -> Option<Result<(), ()>> { ... }
}
Expand description
Submit a signed transaction to the transaction pool.
Required Associated Types§
Required Methods§
sourcefn send_signed_transaction(
&self,
f: impl Fn(&Account<T>) -> LocalCall,
) -> Self::Result
fn send_signed_transaction( &self, f: impl Fn(&Account<T>) -> LocalCall, ) -> Self::Result
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.
Provided Methods§
Object Safety§
This trait is not object safe.