Re-exports

pub use bincode;
pub use borsh;
pub use serde;
pub use solana_client;
pub use solana_sdk;
pub use spl_memo;
pub use spl_token;

Structs

An clean environment that executes transactions locally. Good for testing and debugging. This environment has the most important SPL programs: spl-token, spl-associated-token-account and spl-memo v1 and v3.

A remote environment on a cluster. Interacts with the cluster using RPC.

Enums

Traits

A generic Environment trait. Provides the possibility of writing generic exploits that work both remote and local, for easy debugging.

Utility trait for printing transaction results.

Functions

Clone the given keypair.

Constructs a devnet client using CommitmentConfig::confirmed().

Return a recognisable Keypair. The public key will start with Kxxx, where xxx are the three digits of the number. o is used instead of 0, as 0 is not part of the base58 charset.

Constructs a client connecting to localhost:8899 using CommitmentConfig::confirmed().

Generate a random keypair.

Setup solana logging. This is heavily recommended if you’re using a local environment.

Constructs a testnet client using CommitmentConfig::confirmed().