Trait solana_client::rpc_sender::RpcSender[][src]

pub trait RpcSender {
    fn send(&self, request: RpcRequest, params: Value) -> Result<Value>;
fn get_transport_stats(&self) -> RpcTransportStats; }
Expand description

A transport for RPC calls.

RpcSender implements the underlying transport of requests to, and responses from, a Solana node, and is used primarily by RpcClient.

It is typically implemented by HttpSender in production, and MockSender in unit tests.

Required methods

Implementors