pub trait RpcSubmitTransport: Send + Sync {
// Required method
fn submit_rpc<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tx_bytes: &'life1 [u8],
config: &'life2 RpcSubmitConfig,
) -> Pin<Box<dyn Future<Output = Result<String, SubmitTransportError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
RPC transport interface.
Required Methods§
Sourcefn submit_rpc<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tx_bytes: &'life1 [u8],
config: &'life2 RpcSubmitConfig,
) -> Pin<Box<dyn Future<Output = Result<String, SubmitTransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn submit_rpc<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
tx_bytes: &'life1 [u8],
config: &'life2 RpcSubmitConfig,
) -> Pin<Box<dyn Future<Output = Result<String, SubmitTransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Submits transaction bytes to RPC and returns signature string.