Introducing a new way to review your PRs.

Read the announcement

solana-foundation / surfpool

Surfpool is where developers start their Solana journey.

View on GitHub

21 documents · Updated Nov 23, 2026

overview

Knowledge Base updated: 2026-11-22

Surfpool knowledge base

Surfpool is a Solana-compatible local development and testing environment. Its Rust workspace combines a runtime and RPC service, persistent and in-memory state backends, scenario execution, operator interfaces, and SDK-facing integration layers.

Critical runtime state is held through account-storage abstractions and database backends, while Surfnet supplies virtualized execution environments. Shared cross-crate contracts live in the types crate; scenarios, interfaces, and SDKs consume those contracts to run and control environments.

flowchart TD
  CLI[CLI and HTTP server] --> Runtime[Runtime and RPC service]
  TUI[Interactive terminal UI] --> Runtime
  Studio[Studio UI] --> Runtime
  Runbooks[Runbook automation] --> CLI
  Runtime --> RPC[RPC surface and subscriptions]
  Runtime --> Loops[Runtime execution loops]
  Runtime --> Surfnet[Surfnet virtual network]
  Surfnet --> Storage[Account storage backends]
  Storage --> DB[Database backends]
  Scenarios[Scenario execution] --> Runtime
  Registry[Scenario registry and protocols] --> Scenarios
  Examples[Scenario examples] --> Scenarios
  Rust[Rust SDK and cheatcodes] --> Runtime
  Node[Node.js SDK] --> Runtime
  MCP[MCP server integration] --> Runtime
  Contracts[Shared contracts and generated types] --> Runtime
  Contracts --> Scenarios
  Contracts --> Rust
  Contracts --> Node

Glossary

  • Surfnet — Surfpool's virtualized Solana execution environment, with local and remote modes.
  • Cheatcodes — SDK/RPC-supported state setup and mutation operations used when testing environments.
  • Scenario — A reproducible protocol workflow executed against a Surfpool environment.
  • Simnet — The local simulated network operated through Surfpool's runtime and user interfaces.
  • Jito — The bundle- and transaction-related model and RPC integration area represented in shared contracts and RPC support.

Invariants

  • Shared scenario models remain centrally defined in crates/…/scenarios.rs; scenario consumers should use those contracts rather than duplicate workflow types.
  • Runtime-facing state must be accessed through account-storage and database abstractions, as routed by crates/storage/** and crates/database/**.
  • RPC behavior is separated into API modules and runtime lifecycle coordination, reflected by the crates/rpc/** and runtime runloop routing scopes.
  • Generated TypeScript bindings derive from the shared types integration rather than becoming an independent source of contract truth; see crates/types/** and crates/node-sdk/**.

Routing table