Struct solana_client::tpu_client::TpuClient [−][src]
pub struct TpuClient { /* fields omitted */ }
Client which sends transactions directly to the current leader’s TPU port over UDP. The client uses RPC to determine the current leader and fetch node contact info
Implementations
impl TpuClient
[src]
impl TpuClient
[src]pub fn send_transaction(&self, transaction: &Transaction) -> bool
[src]
Serializes and sends a transaction to the current leader’s TPU port
pub fn send_wire_transaction(&self, wire_transaction: &[u8]) -> bool
[src]
Sends a transaction to the current leader’s TPU port
pub fn new(
rpc_client: Arc<RpcClient>,
websocket_url: &str,
config: TpuClientConfig
) -> Result<Self, TpuSenderError>
[src]
rpc_client: Arc<RpcClient>,
websocket_url: &str,
config: TpuClientConfig
) -> Result<Self, TpuSenderError>
Create a new client that disconnects when dropped
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for TpuClient
impl !RefUnwindSafe for TpuClient
impl !UnwindSafe for TpuClient
impl !UnwindSafe for TpuClient
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,