pub trait SendUnsignedTransaction<T, LocalCall>where
    T: SigningTypes + CreateBare<LocalCall>,{
    type Result;
    // Required method
    fn send_unsigned_transaction<TPayload, F>(
        &self,
        f: F,
        f2: impl Fn(TPayload, <T as SigningTypes>::Signature) -> LocalCall,
    ) -> Self::Result
       where F: Fn(&Account<T>) -> TPayload,
             TPayload: SignedPayload<T>;
    // Provided method
    fn submit_unsigned_transaction(
        &self,
        call: LocalCall,
    ) -> Option<Result<(), ()>> { ... }
}Expand description
Submit an unsigned transaction onchain with a signed payload
Required Associated Types§
Required Methods§
Sourcefn send_unsigned_transaction<TPayload, F>(
    &self,
    f: F,
    f2: impl Fn(TPayload, <T as SigningTypes>::Signature) -> LocalCall,
) -> Self::Result
 
fn send_unsigned_transaction<TPayload, F>( &self, f: F, f2: impl Fn(TPayload, <T as SigningTypes>::Signature) -> LocalCall, ) -> Self::Result
Send an unsigned transaction with a signed payload.
This method takes f and f2 where:
fis called for every account and is expected to return aSignedPayloadobject.f2is then called with theSignedPayloadreturned byfand the signature and is expected to return aCallobject to be embedded into transaction.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.