pub trait TransactionApiClient<Hash>: SubscriptionClientT{
// Provided method
fn submit_and_watch<'life0, 'async_trait>(
&'life0 self,
bytes: Bytes,
) -> Pin<Box<dyn Future<Output = Result<Subscription<TransactionEvent<Hash>>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Client implementation for the TransactionApi
RPC API.
Provided Methods§
Sourcefn submit_and_watch<'life0, 'async_trait>(
&'life0 self,
bytes: Bytes,
) -> Pin<Box<dyn Future<Output = Result<Subscription<TransactionEvent<Hash>>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn submit_and_watch<'life0, 'async_trait>(
&'life0 self,
bytes: Bytes,
) -> Pin<Box<dyn Future<Output = Result<Subscription<TransactionEvent<Hash>>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Submit an extrinsic to watch.
See TransactionEvent
for details on
transaction life cycle.
§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.