referrerpolicy=no-referrer-when-downgrade
sc_rpc_spec_v2::transaction::api

Trait TransactionBroadcastApiClient

Source
pub trait TransactionBroadcastApiClient: ClientT {
    // Provided methods
    fn broadcast<'life0, 'async_trait>(
        &'life0 self,
        bytes: Bytes,
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn stop_broadcast<'life0, 'async_trait>(
        &'life0 self,
        operation_id: String,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the TransactionBroadcastApi RPC API.

Provided Methods§

Source

fn broadcast<'life0, 'async_trait>( &'life0 self, bytes: Bytes, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Broadcast an extrinsic to the chain.

§Unstable

This method is unstable and subject to change in the future.

Source

fn stop_broadcast<'life0, 'async_trait>( &'life0 self, operation_id: String, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Broadcast an extrinsic to the chain.

§Unstable

This method is unstable and subject to change in the future.

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<TypeJsonRpseeInteral> TransactionBroadcastApiClient for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT,