Trait SubmitExtrinsic

Source
pub trait SubmitExtrinsic {
    type Hash;

    // Required methods
    fn submit_extrinsic<'life0, 'async_trait, Address, Call, Signature, TransactionExtension>(
        &'life0 self,
        extrinsic: UncheckedExtrinsic<Address, Call, Signature, TransactionExtension>,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Hash>> + 'async_trait>>
       where Address: Encode + 'async_trait,
             Call: Encode + 'async_trait,
             Signature: Encode + 'async_trait,
             TransactionExtension: Encode + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn submit_opaque_extrinsic<'life0, 'life1, 'async_trait>(
        &'life0 self,
        encoded_extrinsic: &'life1 Bytes,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Hash>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Simple extrinsic submission without any subscription.

Required Associated Types§

Required Methods§

Source

fn submit_extrinsic<'life0, 'async_trait, Address, Call, Signature, TransactionExtension>( &'life0 self, extrinsic: UncheckedExtrinsic<Address, Call, Signature, TransactionExtension>, ) -> Pin<Box<dyn Future<Output = Result<Self::Hash>> + 'async_trait>>
where Address: Encode + 'async_trait, Call: Encode + 'async_trait, Signature: Encode + 'async_trait, TransactionExtension: Encode + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Submit an encodable extrinsic to the substrate node. Returns the extrinsic hash.

Source

fn submit_opaque_extrinsic<'life0, 'life1, 'async_trait>( &'life0 self, encoded_extrinsic: &'life1 Bytes, ) -> Pin<Box<dyn Future<Output = Result<Self::Hash>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Submit an encoded, opaque extrinsic to the substrate node. Returns the extrinsic hash.

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.

Implementors§

Source§

impl<T, Client> SubmitExtrinsic for Api<T, Client>
where T: Config, Client: Request,

Source§

type Hash = <T as Config>::Hash