Expand description
§Surfpool SDK
Embed a full Surfpool instance directly in your Rust integration tests.
No external process needed — just spin up a Surfnet, point your RPC client at it,
and test against a real Solana-compatible runtime.
use surfpool_sdk::Surfnet;
#[tokio::test]
async fn my_test() {
let surfnet = Surfnet::start().await.unwrap();
let rpc = surfnet.rpc_client();
let balance = rpc.get_balance(&surfnet.payer().pubkey()).unwrap();
assert!(balance > 0);
}Re-exports§
pub use cheatcodes::Cheatcodes;
Modules§
Structs§
- Keypair
- A vanilla Ed25519 key pair
- Pubkey
- The address of a Solana account.
- RpcClient
- A client of a remote Solana node.
- Surfnet
- A running Surfpool instance with RPC/WS endpoints on dynamic ports.
- Surfnet
Builder - Builder for configuring a
Surfnetinstance before starting it. - SvmFeature
Config - Overrides applied on top of LiteSVM’s mainnet-beta feature baseline.
Enums§
Traits§
- Signer
- The
Signertrait declares operations that all digital signature providers must support. It is the primary interface by which signers are specified inTransactionsigning interfaces