Struct solana::thin_client::ThinClient[][src]

pub struct ThinClient { /* fields omitted */ }

An object for querying and sending transactions to the network.

Methods

impl ThinClient
[src]

Create a new ThinClient that will interface with Rpu over requests_socket and transactions_socket. To receive responses, the caller must bind socket to a public address before invoking ThinClient methods.

Send a signed Transaction to the server for processing. This method does not wait for a response.

Creates, signs, and processes a Transaction. Useful for writing unit-tests.

Request the balance of the user holding pubkey. This method blocks until the server sends a response. If the response packet is dropped by the network, this method will hang indefinitely.

Request the transaction count. If the response packet is dropped by the network, this method will hang.

Request the last Entry ID from the server. This method blocks until the server sends a response.

Check a signature in the bank. This method blocks until the server sends a response.

Trait Implementations

impl Drop for ThinClient
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl Send for ThinClient

impl Sync for ThinClient