Re-exports

pub use bs58;
pub use crate::cache::Cache;
pub use crate::cache::CacheItem;
pub use crate::constants::*;
pub use crate::errors::*;
pub use crate::parse::path_to_string;
pub use crate::setup::setup_client;
pub use crate::setup::sugar_setup;

Modules

An Anchor generated module, providing a set of structs mirroring the structs deriving Accounts, where each field is a Pubkey. This is useful for specifying accounts for a client.

An Anchor generated module containing the program’s set of instructions, where each method handler in the #[program] mod is associated with a struct defining the input arguments to the method. These should be used directly, when one wants to serialize Anchor instruction data, for example, when speciying instructions on a client.

named accounts for synthesized data accounts for bank state, etc.

Macros

Construct an ad-hoc error from a string or existing non-anyhow error value.

Constructs an event at the debug level.

Constructs an event at the error level.

Constructs an event at the info level.

Construct a serde_json::Value from a JSON literal.

Constructs an event at the warn level.

Structs

Candy machine state and config data.

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

A reference to an open file on the filesystem.

A hash map implemented with quadratic probing and SIMD lookup.

An asynchronous Client to make Requests with.

A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.

A vanilla Ed25519 key pair

A slice of a path (akin to str).

An owned, mutable path (akin to String).

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

A Response to a submitted Request.

An atomically-commited sequence of instructions.

Enums

Represents any valid JSON value.

Statics

The static program ID

Traits

A data structure that can be deserialized and stored into account storage, i.e. an AccountInfo’s mutable data slice.

A data structure that can be deserialized from any data format supported by Serde.

Parse a value from a string

The Signer trait declares operations that all digital signature providers must support. It is the primary interface by which signers are specified in Transaction signing interfaces

Type Definitions

Result<T, Error>

Derive Macros