Crate anchor_client[][src]

anchor_client provides an RPC client to send transactions and fetch deserialized accounts from Solana programs written in anchor_lang.

Re-exports

pub use anchor_lang;
pub use solana_client;
pub use solana_sdk;

Structs

Client

Client defines the base configuration for building RPC clients to communitcate with Anchor programs running on a Solana cluster. It’s primary use is to build a Program client via the program method.

EventContext
Program

Program is the primary client handle to be used to build and send requests.

RequestBuilder

RequestBuilder provides a builder interface to create and send transactions to a cluster.

Enums

ClientError
Cluster
RequestNamespace

Type Definitions

EventHandle

EventHandle unsubscribes from a program event stream on drop.