pub struct ThinClient { /* private fields */ }
Expand description

An object for querying and sending transactions to the network.

Implementations§

Create a new ThinClient that will interface with the Rpc at rpc_addr using TCP and the Tpu at tpu_addr over transactions_socket using Quic or UDP (currently hardcoded to UDP)

Retry a sending a signed Transaction to the server for processing.

Retry sending a signed Transaction with one signing Keypair to the server for processing.

Trait Implementations§

Send a signed transaction, but don’t wait to see if the server accepted it.
Create a transaction from the given message, and send it to the server, but don’t wait for to see if the server accepted it.
Create a transaction from a single instruction that only requires a single signer. Then send it to the server, but don’t wait for a reply.
Attempt to transfer lamports from keypair to pubkey, but don’t wait to confirm.

Poll the server until the signature has been confirmed by at least min_confirmed_blocks

Create a transaction from the given message, and send it to the server, retrying as-needed.
Create a transaction from a single instruction that only requires a single signer. Then send it to the server, retrying as-needed.
Transfer lamports from keypair to pubkey, retrying until the transfer completes or produces and error.
Get an account or None if not found.
Get an account or None if not found.
Get an account or None if not found. Uses explicit commitment configuration.
Get account balance or 0 if not found.
Get account balance or 0 if not found. Uses explicit commitment configuration.
👎Deprecated since 1.9.0: Please use get_latest_blockhash instead
Get recent blockhash
👎Deprecated since 1.9.0: Please use get_latest_blockhash_with_commitment and get_latest_blockhash_with_commitment instead
Get recent blockhash. Uses explicit commitment configuration.
👎Deprecated since 1.9.0: Please use get_fee_for_message or is_blockhash_valid instead
Get Some(FeeCalculator) associated with blockhash if it is still in the BlockhashQueue, otherwise None`
👎Deprecated since 1.9.0: Please do not use, will no longer be available in the future
Get recent fee rate governor
Get signature status.
Get signature status. Uses explicit commitment configuration.
Get last known slot
Get last known slot. Uses explicit commitment configuration.
Get transaction count
Get transaction count. Uses explicit commitment configuration.
Poll to confirm a transaction.
👎Deprecated since 1.9.0: Please do not use, will no longer be available in the future
Get last known blockhash
Get latest blockhash with last valid block height. Uses explicit commitment configuration.
Check if the blockhash is valid
Calculate the fee for a Message

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more