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§
sourcefn 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 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.
sourcefn 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,
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.
Object Safety§
This trait is not object safe.