Scale or Die: From Localnet to Mainnet w/ Surfpool and Infrastructure as Code
By accelerate-25
Published on 2025-05-19
Surfpool revolutionizes Solana development with mainnet-like testing and infrastructure as code tooling
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.
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
Scale or Die at Accelerate 2025: SVMKit: Solana Infrastructure as Code
Alexander Guy introduces SVMKit, a revolutionary tool for deploying and managing Solana infrastructure as code
Scale or Die 2025: Spilling the TEE (Doctorblocks | Switchboard)
Switchboard's CTO reveals groundbreaking developments in oracle technology and confidential computing for Solana
Validated | An Open-Source Toolset for Token Infrastructure w/ Tommy Johnson
Discover how Armada is transforming token launches and infrastructure on Solana with open-source tools for sustainable tokenomics and governance.
Ship or Die at Accelerate 2025: Lightning Talk: SendAI
SendAI introduces Solana App Kit, revolutionizing mobile app development on Solana
Solana Changelog May 31: Interfaces, Solang, and Solana ChatGPT
Explore the latest Solana developments including interfaces, Solang Compiler v0.3.0, and the new Solana ChatGPT plugin in this comprehensive changelog.
Validated | Crypto-Powered Physical Infrastructure with Sami Kassab
Explore how Decentralized Physical Infrastructure Networks (DePIN) are transforming traditional infrastructure models using blockchain technology and token incentives.
Validated | Can DePIN Build a Better Map Than Google?
Explore how HiveMapper is challenging Google Maps with blockchain technology and decentralized mapping, offering fresher data and fair rewards for contributors.
Ship or Die 2025: Solana Attestation Service
Solana Attestation Service launches on mainnet, revolutionizing KYC and data management on the blockchain
Building a Solana Test Validator on Steroids w/ Thorsten Lorenz (Luzid) - Solfate Podcast #50
Discover how Luzid, a "Solana test validator on steroids," is transforming the developer experience with lightning-fast testing, state manipulation, and ephemeral roll-ups for gaming.
Scale or Die at Accelerate 2025: Welcome to Scale or Die: Day 2
Day 2 of Scale or Die event focuses on infrastructure and dev tooling with workshops and summits
Solana Ecosystem Call - March 2024
Dive into the latest Solana ecosystem developments, including Kamino's token launch, Wormhole's airdrop, and IoNet's groundbreaking AI infrastructure on Solana.
CODE: The Simplest Way To Send Money
Discover how CODE is simplifying crypto payments with instant, private transactions on Solana. Learn about their innovative L2 solution and plans for web-based micro-payments.
Everything You Need To Know About Solana Blinks | Chris Osborn & Jon Wong
Discover how Solana Blinks are transforming crypto interactions on social media, enabling seamless transactions and actions directly from platforms like Twitter.
Chase (Solana Mobile) Full Conversation
Discover how Solana Mobile's upcoming Seeker phone is set to transform the crypto app landscape, offering unprecedented opportunities for developers and users alike.
Unlayered Episode 6: Teleport - Decentralizing Ridesharing on Solana
Discover how Teleport is building a decentralized ridesharing protocol on Solana, aiming to disrupt the industry and create a fairer system for drivers and riders.
- Borrow / Lend
- Liquidity Pools
- Token Swaps & Trading
- Yield Farming
- Solana Explained
- Is Solana an Ethereum killer?
- Transaction Fees
- Why Is Solana Going Up?
- Solana's History
- What makes Solana Unique?
- What Is Solana?
- How To Buy Solana
- Solana's Best Projects: Dapps, Defi & NFTs
- Choosing The Best Solana Validator
- Staking Rewards Calculator
- Liquid Staking
- Can You Mine Solana?
- Solana Staking Pools
- Stake with us
- How To Unstake Solana
- How validators earn
- Best Wallets For Solana