pub trait TransactionApiServer<Hash: Clone>:
Sized
+ Send
+ Sync
+ 'static {
// Required method
fn submit_and_watch(
&self,
subscription_sink: PendingSubscriptionSink,
bytes: Bytes,
);
// Provided method
fn into_rpc(self) -> RpcModule<Self>
where Hash: Send + Sync + 'static + Serialize { ... }
}
Expand description
Server trait implementation for the TransactionApi
RPC API.
Required Methods§
Sourcefn submit_and_watch(
&self,
subscription_sink: PendingSubscriptionSink,
bytes: Bytes,
)
fn submit_and_watch( &self, subscription_sink: PendingSubscriptionSink, bytes: Bytes, )
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.
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.