Skip to content
The @solana/surfpool package exposes one class, Surfnet, plus the supporting types you need to call its methods type-safely. This page lists every exported symbol; for narrative usage, see the guides starting with Overview.
Kit entry pointThe symbols below are the root @solana/surfpool exports. The @solana/surfpool/kit subpath adds surfpool(), surfnetCheatcodes(), createSurfnetCheatcodesRpc(), DEFAULT_SURFNET_ENDPOINT, the plugin config types, and the generated cheatcode wire types — all documented on Kit Plugin rather than in this table.

​Package Exports

SymbolKindNotes
SurfnetclassRunning Surfnet instance with cheatcode methods
SurfnetConfigtypeArgument to Surfnet.startWithConfig
DeployOptionstypeArgument to Surfnet.deploy
SetTokenAccountUpdatetypeArgument to Surfnet.setTokenAccount
ResetAccountOptionstypeArgument to Surfnet.resetAccount
StreamAccountOptionstypeArgument to Surfnet.streamAccount
SolAccountFundingtypeElement of the array passed to Surfnet.fundSolMany
SimnetEventValuetypeElement returned by Surfnet.drainEvents
KeypairInfotypeReturned by Surfnet.newKeypair
ClockValuetypeField on SimnetEventValue
EpochInfoValuetypeReturned by time-travel helpers
ByteArrayLiketypeUint8Array | number[] — flexible byte input

​Surfnet Class

​Static Methods

​Instance Properties

​Lifecycle

​SOL Cheatcodes

​Token Cheatcodes

​Time Travel

​Program Deployment

​Streaming & Events

​Config Types

​SurfnetConfig

​DeployOptions

​SetTokenAccountUpdate

​ResetAccountOptions

​StreamAccountOptions

​SolAccountFunding

​KeypairInfo

​ByteArrayLike

Where a method accepts ByteArrayLike, you can pass either a Uint8Array or a plain number array. The wrapper normalizes both into the format the native binding expects.

​Event Types

​SimnetEventValue

A flat object with a kind discriminator and optional fields. See Events for the variant catalog.

​ClockValue

​EpochInfoValue

​Errors

Every method throws a standard Error whose message wraps the underlying Rust SurfnetError. The message is free text, and the variant name is not a stable prefix. Match on substrings if you must, or not at all.

​Native Module Footprint

The package depends on platform-specific native binaries published as optionalDependencies:
TriplePackage
aarch64-apple-darwin@solana/surfpool-darwin-arm64
x86_64-apple-darwin@solana/surfpool-darwin-x64
x86_64-unknown-linux-gnu@solana/surfpool-linux-x64-gnu
If none of the platform packages installs on your machine, Surfnet.start() throws at first call with a clear “native module not found” error. See Installation for the support matrix and troubleshooting.