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

An async client to make rpc requests to the Solana blockchain.

Implementations

Returns the decoded contents of a Solana account.

Attempts to deserialize the contents of an account’s data field into a given type using the Borsh deserialization framework.

Attempts to deserialize the contents of an account’s data field into a given type using the Json deserialization framework.

Returns the owner of the account.

Returns the balance (in lamports) of the account.

Returns the minimum balance (in Lamports) required for an account to be rent exempt.

Requests an airdrop of lamports to a given account.

Returns latest blockhash.

Attempts to send a signed transaction to the ledger without simulating it first.

It is a bit faster, but no logs or confirmation is returned because the transaction is not simulated.

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

Performs the conversion.

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

Performs the conversion.

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