Re-exports§
pub use bincode;pub use borsh;pub use serde;pub use solana_client;pub use solana_program;pub use solana_sdk;pub use solana_transaction_status;pub use spl_associated_token_account;pub use spl_memo;pub use spl_token;
Structs§
- Local
Environment - 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.
- Local
Environment Builder - Remote
Environment - A remote environment on a cluster. Interacts with the cluster using RPC.
Enums§
Traits§
- Environment
- A generic Environment trait. Provides the possibility of writing generic exploits that work both remote and local, for easy debugging.
- Printable
Transaction - Utility trait for printing transaction results.
Functions§
- clone_
keypair - Clone the given keypair.
- devnet_
client - Constructs a devnet client using
CommitmentConfig::confirmed(). - keypair
- Return a recognisable Keypair. The public key will start with
Kxxx, where xxx are the three digits of the number.ois used instead of0, as0is not part of the base58 charset. - localhost_
client - Constructs a client connecting to localhost:8899 using
CommitmentConfig::confirmed(). - random_
keypair - Generate a random keypair.
- setup_
logging - Setup solana logging. This is heavily recommended if you’re using a local environment.
- testnet_
client - Constructs a testnet client using
CommitmentConfig::confirmed().