@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
| Symbol | Kind | Notes |
|---|---|---|
Surfnet | class | Running Surfnet instance with cheatcode methods |
SurfnetConfig | type | Argument to Surfnet.startWithConfig |
DeployOptions | type | Argument to Surfnet.deploy |
SetTokenAccountUpdate | type | Argument to Surfnet.setTokenAccount |
ResetAccountOptions | type | Argument to Surfnet.resetAccount |
StreamAccountOptions | type | Argument to Surfnet.streamAccount |
SolAccountFunding | type | Element of the array passed to Surfnet.fundSolMany |
SimnetEventValue | type | Element returned by Surfnet.drainEvents |
KeypairInfo | type | Returned by Surfnet.newKeypair |
ClockValue | type | Field on SimnetEventValue |
EpochInfoValue | type | Returned by time-travel helpers |
ByteArrayLike | type | Uint8Array | 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
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 akind discriminator and optional fields. See
Events for the variant catalog.
ClockValue
EpochInfoValue
Errors
Every method throws a standardError 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 asoptionalDependencies:
| Triple | Package |
|---|---|
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 |
Surfnet.start()
throws at first call with a clear “native module not found” error. See
Installation for the support matrix and
troubleshooting.