Scale or Die: From Localnet to Mainnet w/ Surfpool and Infrastructure as Code
Surfpool brings mainnet data to localnet, enabling realistic testing and powerful infrastructure management for Solana developers
Solana developers, get ready for a game-changing upgrade to your toolkit! Surfpool, a powerful new solution from TXTX, is set to revolutionize how you build, test, and deploy on Solana. By bringing mainnet data to your local environment and introducing infrastructure as code principles, Surfpool promises to dramatically improve developer experience and productivity.
Summary
Ludo Galabru, co-founder of TXTX, introduced Surfpool during a presentation at a Solana event. Surfpool is described as a massive upgrade to the Solana local validator, built on top of RpcSVM. It aims to provide the best developer experience for anyone joining the crypto space, particularly those working on Solana.
The core innovation of Surfpool is its ability to combine the speed and control of a local development environment with the realism of mainnet data. This allows developers to conduct end-to-end simulations and testing with real-world data, without the costs and risks associated with mainnet deployments.
Beyond its simulation capabilities, Surfpool introduces powerful infrastructure as code tooling. This approach brings modern DevOps practices to Web3 development, allowing for more robust, reproducible, and secure deployment processes. The team at TXTX has focused on solving common pain points in crypto development, drawing from their extensive experience in the field.
Key Points:
Surfpool's Local Environment with Mainnet Data
Surfpool addresses a critical gap in the current Solana development ecosystem. While developers have options like localnet, devnet, and mainnet for testing, each comes with limitations. Localnet lacks real-world data, devnet can be unstable and incomplete, and mainnet testing is costly and risky.
Surfpool solves this by creating a local environment that can instantly boot up with real-world mainnet data. This gives developers the speed and control of a local setup with the realism of mainnet, enabling more comprehensive and confident testing earlier in the development cycle.
Infrastructure as Code for Web3
TXTX has identified deployment and operations as a major pain point in Web3 development. Compared to traditional cloud infrastructure management, Web3 infrastructure management is significantly behind, often relying on basic scripts and manual processes.
Surfpool introduces infrastructure as code principles to Web3, focusing on three key areas: on-chain infrastructure, signing infrastructure, and off-chain components. The team has developed a declarative, composable language based on HCL (HashiCorp Configuration Language) to describe and manage these infrastructures.
Powerful Developer Tooling
Surfpool comes with a range of features designed to enhance the developer experience. It can automatically detect Anchor or Node.js projects and scaffold deployment code. The dashboard feature allows for rapid iteration, automatically redeploying infrastructure when programs are recompiled.
For off-chain components, Surfpool can generate subgraph specifications for data indexing based on program directives. This creates a GraphQL API for querying indexed data, complete with documentation generated from Rust docs in the program code.
Flexible and Secure Signing Infrastructure
Recognizing the critical importance of security in Web3, Surfpool offers a flexible signing infrastructure. Developers can easily switch between different signer types, including hot-coded key pairs, connected web wallets, and multi-sig setups using Squad.
The system supports both unsupervised and supervised execution modes. The supervised mode provides a web UI that guides users through the workflow execution, adding context, requesting confirmations, and enhancing the overall security and transparency of the signing process.
Facts + Figures
- Surfpool is built on top of RpcSVM, enhancing the capabilities of the Solana local validator
- The solution won first prize at the Colosseum hackathon for its infrastructure as code tooling
- Surfpool uses a copy-on-read strategy to pull mainnet data as needed
- The system includes "cheat codes" that allow developers to bend consensus rules and set specific chain states
- Surfpool can be launched as a service, allowing teams to spin up shared networks in the cloud directly from the CLI
- The infrastructure as code component uses a non-Turing complete subset of HCL (HashiCorp Configuration Language)
- Surfpool's workflows are designed to be directed acyclic graphs with stateful execution
- The system can automatically generate subgraph specifications for data indexing based on program directives
- Surfpool supports three types of signers: hot-coded key pairs, connected web wallets, and multi-sig setups using Squad
- The solution offers both unsupervised and supervised execution modes for enhanced security and transparency
Top quotes
- "Surfpool brings powerful infrastructure as code tooling. The same tech that earned us the first prize at the Colosseum hackathon."
- "Surfpool is essentially localnet plus mainnet data. It runs locally, just like some of that is really data. But it can boot up instantly on our Raspberry Pi with real world data that will present when you need them."
- "We want Surfpool to be the first developer touch point on Solana and that comes with responsibility."
- "If we compare the level of maturity between cloud infrastructure management and Web3 infrastructure, supposed to be our next morning infrastructure, it feels like we are stuck in the 90s with bar scripts and one of JavaScript files being the current standard."
- "Security is in our DNA, and we built a new framework. It's operating locally with an ephemeral key pair. It's perfectly fine, but upgrading to a safer signing setup should be seamless."
Questions Answered
What is Surfpool and how does it improve Solana development?
Surfpool is a powerful upgrade to the Solana local validator that combines the speed of a local environment with the realism of mainnet data. It allows developers to conduct end-to-end simulations and testing with real-world data, without the costs and risks associated with mainnet deployments. This enables more comprehensive and confident testing earlier in the development cycle, significantly improving the Solana development experience.
How does Surfpool address the limitations of existing Solana testing environments?
Surfpool addresses the limitations of existing Solana testing environments by creating a local setup that can instantly boot up with real-world mainnet data. This solves the problem of localnet lacking real-world data, devnet being potentially unstable or incomplete, and mainnet testing being costly and risky. With Surfpool, developers get the best of both worlds - the speed and control of a local environment with the realism of mainnet data.
What infrastructure as code features does Surfpool offer?
Surfpool introduces infrastructure as code principles to Web3 development, focusing on three key areas: on-chain infrastructure, signing infrastructure, and off-chain components. It uses a declarative, composable language based on HCL (HashiCorp Configuration Language) to describe and manage these infrastructures. This allows for more robust, reproducible, and secure deployment processes, bringing modern DevOps practices to Web3 development.
How does Surfpool enhance data indexing and querying for Solana projects?
Surfpool can automatically generate subgraph specifications for data indexing based on program directives. This creates a GraphQL API for querying indexed data, complete with documentation generated from Rust docs in the program code. This feature allows developers to easily set up and use indexed data from their Solana programs, enhancing the ability to build complex applications and front-ends.
What security features does Surfpool offer for signing transactions?
Surfpool provides a flexible and secure signing infrastructure. Developers can easily switch between different signer types, including hot-coded key pairs, connected web wallets, and multi-sig setups using Squad. The system also offers a supervised execution mode with a web UI that guides users through the workflow execution, adding context, requesting confirmations, and enhancing the overall security and transparency of the signing process.
Comments
Please login to leave a comment.
On this page
- Summary
- Key Points:
- Facts + Figures
- Top quotes
-
Questions Answered
- What is Surfpool and how does it improve Solana development?
- How does Surfpool address the limitations of existing Solana testing environments?
- What infrastructure as code features does Surfpool offer?
- How does Surfpool enhance data indexing and querying for Solana projects?
- What security features does Surfpool offer for signing transactions?
Related Content
CODE: The Simplest Way To Send Money
Micropayments Are Crypto's Untapped Use Case | Ted Livingston (CEO of Code)
Wen Firedancer
Alpenglow: Solana's 100x Improvement
Anza Developer Sets Mainnet Dates: Transaction V1 September 9, Rent Reduction This Week, Alpenglow in October
Ship or Die at Accelerate 2025: Lightning Talk: Vana
How Switchboard Is Solving Crypto's Oracle Problem | Chris Hermida & Mitch Gildenberg
Jump Crypto: The State Of Firedancer | Michael McGee
Solana Changelog - May 1 - Auto-extend programs in the CLI, deploy Solana programs with an RPC, more
This Is How Solana Wins With Lucas Bruder
Solana Foundation: The Future of DePIN On Solana | Amira Valliani
Why This Early Solana Investor Is Still All In | Viktor Fischer
Breakpoint 2024: Product Keynote: Powerledger: Democratizing Power for a Sustainable Future for All
Superteam Brazil Relaunches Solana-Claude as Solana AI Kit, Available Now on the Claude Code Plugin Marketplace
Solana Changelog March 7 - Verifiable Builds, Admin RPC, and Geyser
Latest news
Solana Policy Institute Asks SEC to Define 'Permissionless' Ledgers by Who Controls Validators
Circle Gateway Brings Unified EURC Balances to Solana, With 20M EURC in a New Pre-Mint Account
Sanctum Q3 2026 Report: TVL Hits a Record 18.62M SOL as Gross Profit Falls 16% in SOL Terms
Bitquery Traces $1.4B of Raydium CLMM Volume, 22.7% of the Total, to One Wash-Trading Wallet
J.P. Morgan Asset Management Brings Its MONY and JLTXX Tokenized Money Market Funds to Solana
Decrypt Picks Jupiter to Power Trading in Its Money Accounts on Solana
Solana Company (HSDT) Named a Hong Kong Strategic Enterprise, Plans Solana Validators in the City
Kamino Says Its AUTO Market Passed $170M a Month After Fixed-Rate Borrowing Launched
Raydium Q3 2026 Net Revenue Jumps 264% to $7.99M on Tokenized Stocks and LaunchLab, Blockworks Report Shows
Solana Mobile Launches Seeker Connect, a One-Tap 'Connect with Seeker' Wallet SDK for Expo, Kotlin and Web Dapps
Solana Token Markets