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]

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]

Create a new client that disconnects when dropped

Trait Implementations

impl Drop for TpuClient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiExample for T

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,