Getting Started
Start a Surfnet instance using the Surfpool CLI:http://localhost:8899 with the RPC
endpoints available.
Key Features
- Broad RPC Compatibility: Supports most of the Solana RPC API (see Limitations for the methods that behave differently)
- Fast Iteration: No need to wait for block confirmations
- State Manipulation: Cheatcodes for directly modifying blockchain state
- Mainnet Fork: Fork from mainnet to test with real accounts and programs
- Geyser Plugin Support: Connect your Geyser plugins for real-time data streaming
Limitations
Surfnet is a simulator, so a few standard methods return empty or default data or are not supported:getHighestSnapshotSlotreturns error-32008(No snapshot).getLeaderSchedulereturns{}, andgetRecentPerformanceSamplesreturns synthetic samples with zero transactions.getBlocksreturns[]with--offlineand the datasource’s slots when forking.getSlotLeadersreturns a single placeholder leader and fails only for epochs without a leader schedule.getSupplyreturns all zeros until you callsurfnet_setSupply.blockSubscribe,voteSubscribe, andslotUpdatesSubscribeare not supported over WebSocket.- Most Agave validator admin methods are not implemented (see Admin).
- Request samples assume a Surfnet that forks mainnet (the default). On a
Surfnet started with
--offline, methods that read accounts or token data from the datasource return empty results ornot founderrors.