Clock Semantics
Timestamps are milliseconds; the clock reports seconds surfnet_timeTravel’s absoluteTimestamp is in milliseconds , like
JavaScript’s Date.now(), but the Clock sysvar that programs read reports
seconds . Passing a value straight from the clock back into the cheatcode
lands in early 1970 — and since the clock only moves forward, the call is
rejected rather than ignored. Multiply by 1000 first.
For the SDK-level equivalents of the clock cheatcodes, see
Time Travel .
Powerful testing utilities unique to Surfpool that allow you to directly modify account and token states. These methods are only available on Surfnet.
surfnet_setAccount
Sets or updates an account’s properties including lamports, data, owner, and executable status.
Parameters
The public key of the account to update, as a base-58 encoded string. This identifies which account will be modified.
The account data to update. Contains the new values for lamports, owner, executable status, rent epoch, and data. Show properties Hide properties
The new account data, as a hex encoded string without a 0x prefix (for example 3b9aca00). This contains the actual data stored in the account.
Whether the account should be executable (true for program accounts, false for data accounts).
The new balance in lamports (1 SOL = 1,000,000,000 lamports).
The new owner program ID, as a base-58 encoded string.
The new rent epoch in which this account will next owe rent.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_setAccount",
"params": [
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri",
{
"lamports": 1000000000,
"data": "3b9aca00",
"owner": "11111111111111111111111111111111",
"executable": false
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254787 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_setTokenAccount
Sets or updates a token account’s properties including balance, delegate, state, and authorities.
Parameters
The public key of the token account owner, as a base-58 encoded string. This is the wallet that owns the token account.
The public key of the token mint, as a base-58 encoded string. This identifies the specific token type (e.g., USDC, SOL).
The token account data to update. Contains new values for balance, delegate, state, and authorities. Show properties Hide properties
The new token balance amount in the smallest unit (e.g., lamports for SOL, or the smallest token unit).
The new close authority that can close the account and recover rent.
The new delegate account that can spend tokens on behalf of the owner.
The new delegated amount that the delegate is authorized to spend.
The new account state (e.g., ‘initialized’, ‘frozen’, ‘closed’).
The token program ID, as a base-58 encoded string. Defaults to SPL Token program if not specified.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_setTokenAccount",
"params": [
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri",
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
{
"amount": 1000000000,
"state": "initialized"
},
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254787 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_cloneProgramAccount
Clones a program account from one program ID to another, including its associated program data.
Parameters
The public key of the source program to clone, as a base-58 encoded string.
The public key of the destination program, as a base-58 encoded string.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_cloneProgramAccount",
"params": [
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254787 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_profileTransaction
Profiles a transaction to analyze compute units, account changes, and execution details.
Parameters
The transaction data to profile, as a base-64 encoded string. This should be a serialized VersionedTransaction.
An optional tag to identify the profiling results. Useful for grouping related transaction profiles.
Configuration for the profile result, including encoding format and profiling depth. Show properties Hide properties
The depth of profiling - ‘transaction’ for overall transaction profile, ‘instruction’ for per-instruction breakdown.
The encoding format for returned account data (e.g., ‘base64’, ‘base58’, ‘jsonParsed’).
Result
Show properties Hide properties
Show properties Hide properties
Compute units estimation result Show properties Hide properties
Number of compute units consumed
Error message if estimation failed
Log messages from the transaction
Indicates if the estimation was successful
Profile state containing pre and post execution states Show properties Hide properties
Account states after execution
Account states before execution
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_profileTransaction",
"params": [
"AVYLY52HpedTobQuw2sHN+krKg1Ky8aFychJo4VNGvpcG789GnqJQVQjJUmuL1e80ygOxOYhBvl462nvemMs7QeAAQABA+pKbGPinFIKvvVQexMuxfmVR3auvr57kkIe6mkURtIsaKtGd/+x8olN0KYVPCMdRexDauU65gFJ2+FfMuS4cD8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaGhZ04yAqXIUgYQWkX4L+PyhV+Rk+YzP0P+p34R9vcAQICAAEMAgAAAEBCDwAAAAAAAA==",
"my-tag",
{
"depth": "instruction",
"encoding": "base64"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254787 ,
"apiVersion" : "4.2.1"
},
"value" : {
"slot" : 457254787 ,
"key" : "a3bb5bf9-d21e-42e7-92aa-69e382d4772e" ,
"transactionProfile" : {
"accountStates" : {},
"computeUnitsConsumed" : 0 ,
"logMessages" : [],
"errorMessage" : "Blockhash not found"
},
"readonlyAccountStates" : {
"11111111111111111111111111111111" : {
"lamports" : 1 ,
"data" : [
"c29sYW5hX3N5c3RlbV9wcm9ncmFt" ,
"base64"
],
"owner" : "NativeLoader1111111111111111111111111111111" ,
"executable" : true ,
"rentEpoch" : 0 ,
"space" : 21
}
}
}
}
}
surfnet_getProfileResultsByTag
Retrieves all profiling results for transactions tagged with a specific identifier.
Parameters
The tag to retrieve profiling results for. Returns all transaction profiles that were tagged with this identifier.
Configuration for the profile result, including encoding format and profiling depth. Show properties Hide properties
The depth of profiling - ‘transaction’ for overall transaction profile, ‘instruction’ for per-instruction breakdown.
The encoding format for returned account data (e.g., ‘base64’, ‘base58’, ‘jsonParsed’).
Result
Show properties Hide properties
Show properties Hide properties
Compute units estimation result Show properties Hide properties
Number of compute units consumed
Error message if estimation failed
Log messages from the transaction
Indicates if the estimation was successful
Profile state containing pre and post execution states Show properties Hide properties
Account states after execution
Account states before execution
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_getProfileResultsByTag",
"params": [
"my-tag",
{
"depth": "instruction",
"encoding": "base64"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254787 ,
"apiVersion" : "4.2.1"
},
"value" : [
{
"slot" : 457254787 ,
"key" : "a3bb5bf9-d21e-42e7-92aa-69e382d4772e" ,
"transactionProfile" : {
"accountStates" : {},
"computeUnitsConsumed" : 0 ,
"logMessages" : [],
"errorMessage" : "Blockhash not found"
},
"readonlyAccountStates" : {
"11111111111111111111111111111111" : {
"lamports" : 1 ,
"data" : [
"c29sYW5hX3N5c3RlbV9wcm9ncmFt" ,
"base64"
],
"owner" : "NativeLoader1111111111111111111111111111111" ,
"executable" : true ,
"rentEpoch" : 0 ,
"space" : 21
}
}
}
]
}
}
surfnet_setSupply
Configures the network supply information including total, circulating, and non-circulating amounts.
Parameters
The supply data to update. Contains new values for total, circulating, and non-circulating SOL amounts. Show properties Hide properties
The new circulating supply of SOL in lamports (total supply minus non-circulating).
The new non-circulating supply of SOL in lamports (locked in non-circulating accounts).
The new list of non-circulating account addresses that hold locked SOL.
The new total supply of SOL in lamports across the entire network.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_setSupply",
"params": [
{
"total": 1000000000000000,
"circulating": 800000000000000,
"nonCirculating": 200000000000000,
"nonCirculatingAccounts": [
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
]
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254787 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_setProgramAuthority
Sets or removes the upgrade authority for a program’s ProgramData account.
Parameters
The public key of the program, as a base-58 encoded string. This is the program whose upgrade authority will be modified.
The public key of the new authority, as a base-58 encoded string. If omitted, the program will have no upgrade authority (immutable).
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_setProgramAuthority",
"params": [
"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254787 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_getTransactionProfile
Retrieves the detailed profile of a specific transaction by signature or UUID.
The sample signature belongs to a transfer that was processed by a Surfnet earlier. The result is null for a signature this Surfnet has not processed.
Parameters
The transaction signature (as a base-58 string) or a UUID (as a string) for which to retrieve the profile. This identifies the specific transaction to analyze. Provide exactly one of the fields below. Show properties Hide properties
A UUID string that uniquely identifies a transaction profile in the system.
A transaction signature as a base-58 encoded string that identifies a specific transaction.
Configuration for the profile result, including encoding format and profiling depth. Show properties Hide properties
The depth of profiling - ‘transaction’ for overall transaction profile, ‘instruction’ for per-instruction breakdown.
The encoding format for returned account data (e.g., ‘base64’, ‘base58’, ‘jsonParsed’).
Result
Show properties Hide properties
Show properties Hide properties
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_getTransactionProfile",
"params": [
"3Vgn9jbnyRU48EHSbD47wXLDNV17vzcArFdmZAiN2NjGLpgvsRtkdgR8h5FnHj4ghWDD6nkxq78kPra2c5Gghijo",
{
"depth": "instruction",
"encoding": "base64"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254529 ,
"apiVersion" : "4.2.1"
},
"value" : {
"slot" : 457254529 ,
"key" : "3Vgn9jbnyRU48EHSbD47wXLDNV17vzcArFdmZAiN2NjGLpgvsRtkdgR8h5FnHj4ghWDD6nkxq78kPra2c5Gghijo" ,
"transactionProfile" : {
"accountStates" : {
"11111111111111111111111111111111" : {
"type" : "readonly"
},
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri" : {
"type" : "writable" ,
"accountChange" : {
"type" : "update" ,
"data" : [
{
"lamports" : 1000000 ,
"data" : [
"" ,
"base64"
],
"owner" : "11111111111111111111111111111111" ,
"executable" : false ,
"rentEpoch" : 0 ,
"space" : 0
},
{
"lamports" : 2000000 ,
"data" : [
"" ,
"base64"
],
"owner" : "11111111111111111111111111111111" ,
"executable" : false ,
"rentEpoch" : 0 ,
"space" : 0
}
]
}
},
"GmaDrppBC7P5ARKV8g3djiwP89vz1jLK23V2GBjuAEGB" : {
"type" : "writable" ,
"accountChange" : {
"type" : "update" ,
"data" : [
{
"lamports" : 5000000000 ,
"data" : [
"" ,
"base64"
],
"owner" : "11111111111111111111111111111111" ,
"executable" : false ,
"rentEpoch" : 0 ,
"space" : 0
},
{
"lamports" : 4998995000 ,
"data" : [
"" ,
"base64"
],
"owner" : "11111111111111111111111111111111" ,
"executable" : false ,
"rentEpoch" : 0 ,
"space" : 0
}
]
}
}
},
"computeUnitsConsumed" : 150 ,
"logMessages" : [
"Program 11111111111111111111111111111111 invoke [1]" ,
"Program 11111111111111111111111111111111 success"
],
"errorMessage" : null
},
"readonlyAccountStates" : {
"11111111111111111111111111111111" : {
"lamports" : 1 ,
"data" : [
"c29sYW5hX3N5c3RlbV9wcm9ncmFt" ,
"base64"
],
"owner" : "NativeLoader1111111111111111111111111111111" ,
"executable" : true ,
"rentEpoch" : 0 ,
"space" : 21
}
}
}
}
}
surfnet_registerIdl
Registers an IDL (Interface Definition Language) for a program to enable account data parsing.
Parameters
The full IDL object to be registered in memory. The address field should match the program’s public key. This enables account data parsing for the program. Show properties Hide properties
The IDL accounts array defining all account types that the program can create or interact with.
The program address that this IDL describes, as a base-58 encoded string.
The IDL constants array defining constant values used by the program.
The IDL errors array defining custom error types that the program can return.
The IDL events array defining events that the program can emit.
The IDL instructions array defining all available program instructions and their parameters.
The IDL metadata containing program name, version, and description information.
The IDL state object defining the program’s state account structure (if applicable).
The IDL types array defining custom data types used by the program.
The slot at which to register the IDL. If omitted, uses the latest slot. This determines when the IDL becomes active for account parsing.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_registerIdl",
"params": [
{
"address": "4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T",
"metadata": {
"name": "counter",
"version": "0.1.0",
"spec": "0.1.0"
},
"instructions": [],
"accounts": [],
"types": [],
"events": [],
"errors": [],
"constants": []
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254788 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_getActiveIdl
Retrieves the registered IDL for a specific program ID at a given slot.
Empty IDL collections (accounts, types, events, errors, constants) are omitted from the returned IDL. The value is null when no IDL is registered for the program.
Parameters
The public key of the program whose IDL is being requested, as a base-58 encoded string. This identifies which program’s IDL to retrieve.
The slot at which to query the IDL. If omitted, the latest slot will be used. This determines which version of the IDL to return.
Result
Show properties Hide properties
Show properties Hide properties
The IDL accounts array defining all account types that the program can create or interact with.
The program address that this IDL describes, as a base-58 encoded string.
The IDL constants array defining constant values used by the program.
The IDL errors array defining custom error types that the program can return.
The IDL events array defining events that the program can emit.
The IDL instructions array defining all available program instructions and their parameters.
The IDL metadata containing program name, version, and description information.
The IDL state object defining the program’s state account structure (if applicable).
The IDL types array defining custom data types used by the program.
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_getActiveIdl",
"params": [
"4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T"
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254788 ,
"apiVersion" : "4.2.1"
},
"value" : {
"address" : "4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T" ,
"metadata" : {
"name" : "counter" ,
"version" : "0.1.0" ,
"spec" : "0.1.0"
},
"instructions" : []
}
}
}
surfnet_getLocalSignatures
Retrieves the most recent transaction signatures from the local network.
Parameters
The maximum number of signatures to return. Defaults to 50 if not specified. Returns the most recent signatures first.
Result
Show properties Hide properties
Show properties Hide properties
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_getLocalSignatures",
"params": [
10
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254788 ,
"apiVersion" : "4.2.1"
},
"value" : [
{
"signature" : "2HGr48cj3ArWfqmhPCtaQeae58Z3WHiCTajdkXvaJtHFHoJG37HcS1aJ24fP94Zf2pD1GGAfpEXA7ZPjz3L5BZye" ,
"err" : null ,
"logs" : [
"Program 11111111111111111111111111111111 invoke [1]" ,
"Program 11111111111111111111111111111111 success"
]
},
{
"signature" : "1111111111111111111111111111111111111111111111111111111111111111" ,
"err" : "BlockhashNotFound" ,
"logs" : []
},
{
"signature" : "3Vgn9jbnyRU48EHSbD47wXLDNV17vzcArFdmZAiN2NjGLpgvsRtkdgR8h5FnHj4ghWDD6nkxq78kPra2c5Gghijo" ,
"err" : null ,
"logs" : [
"Program 11111111111111111111111111111111 invoke [1]" ,
"Program 11111111111111111111111111111111 success"
]
}
]
}
}
surfnet_timeTravel
Moves the local network’s clock forward to an absolute epoch, slot, or timestamp, and returns the epoch info after the jump. Omit config to jump to one hour past the current wall-clock time (not one hour past the Surfnet clock): this fails with Cannot travel to past timestamp if the Surfnet clock is already ahead of that. The clock only moves forward: a target in the past is rejected with an error.
The sample jumps to epoch 1500, which is in the future for the current mainnet epoch. Use surfnet_resetNetwork to return to the datasource clock.
Parameters
Configuration specifying how to modify the clock. Can move to a specific epoch, slot, or timestamp. Provide exactly one of the fields below. Show properties Hide properties
Move to the specified absolute epoch number (each epoch = 432,000 slots).
Move to the specified absolute slot number in the blockchain.
Move to the specified UNIX timestamp, in MILLISECONDS since epoch. The Clock sysvar that programs read reports seconds, so a value taken from it must be multiplied by 1000.
Result
Current slot index within the epoch
Total number of slots in the epoch
Current transaction count
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_timeTravel",
"params": [
{
"absoluteEpoch": 1500
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"epoch" : 1500 ,
"slotIndex" : 0 ,
"slotsInEpoch" : 432000 ,
"absoluteSlot" : 648000000 ,
"blockHeight" : 267 ,
"transactionCount" : 2
}
}
surfnet_pauseClock
Freezes the local network’s clock. Slot production and time progression halt until surfnet_resumeClock is called. Returns the epoch info at the moment of the pause; it carries no timestamp, and the paused state is not reported by any other method. For the simulated unix time, call getAccountInfo on SysvarC1ock11111111111111111111111111111111 with jsonParsed encoding.
Result
Current slot index within the epoch
Total number of slots in the epoch
Current transaction count
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_pauseClock",
"params": []
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"epoch" : 1058 ,
"slotIndex" : 198788 ,
"slotsInEpoch" : 432000 ,
"absoluteSlot" : 457254788 ,
"blockHeight" : 265 ,
"transactionCount" : 2
}
}
surfnet_resumeClock
Resumes the local network’s clock progression after a pause, restarting slot production. Returns the epoch info after resuming.
Result
Current slot index within the epoch
Total number of slots in the epoch
Current transaction count
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_resumeClock",
"params": []
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"epoch" : 1058 ,
"slotIndex" : 198789 ,
"slotsInEpoch" : 432000 ,
"absoluteSlot" : 457254789 ,
"blockHeight" : 266 ,
"transactionCount" : 2
}
}
surfnet_resetAccount
Resets an account on the local network to its original state from the remote datasource.
Parameters
The base-58 encoded public key of the account to reset.
Configuration for the reset operation. Show properties Hide properties
If true, also resets accounts owned by the specified account.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_resetAccount",
"params": [
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri",
{
"includeOwnedAccounts": false
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254789 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_exportSnapshot
Exports a snapshot of all accounts in the Surfnet SVM.
The result maps each account address to its account data; only the first entries are shown.
Parameters
Configuration for the export operation. Show properties Hide properties
If true, includes parsed account data in the snapshot.
Filter configuration to limit which accounts are included. Show properties Hide properties
Whether to include accounts owned by a BPF loader (program accounts) in the snapshot. Defaults to false. Pubkeys explicitly listed in includeAccounts bypass this filter.
List of specific account public keys to include. Pubkeys listed here bypass excludeSysvars and excludeFeatureGates, but are still removed if also present in excludeAccounts.
List of specific account public keys to exclude. Takes precedence over every other filter, including includeAccounts, excludeSysvars, and excludeFeatureGates.
If true, omit accounts owned by the sysvar program (Sysvar1111111111111111111111111111111111111). Defaults to false (fully backward compatible). Pubkeys explicitly listed in includeAccounts bypass this filter.
If true, omit accounts whose pubkey appears in agave’s FEATURE_NAMES registry. Defaults to false (fully backward compatible). Note: the feature-gate set is frozen at the agave-feature-set version compiled into the running surfpool binary — feature gates introduced upstream after that version will not be excluded until surfpool itself is upgraded. Pubkeys explicitly listed in includeAccounts bypass this filter.
Scope to limit the accounts included. Options are ‘network’ (all accounts) or ‘preTransaction’ (accounts touched by a transaction).
Result
Show properties Hide properties
Map of account public keys to their snapshots
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_exportSnapshot",
"params": [
{
"includeParsedAccounts": true,
"scope": "network"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254789 ,
"apiVersion" : "4.2.1"
},
"value" : {
"11111111111111111111111111111111" : {
"lamports" : 1 ,
"owner" : "NativeLoader1111111111111111111111111111111" ,
"executable" : true ,
"rentEpoch" : 0 ,
"data" : "c29sYW5hX3N5c3RlbV9wcm9ncmFt" ,
"parsedData" : null
},
"16FMCmgLzCNNz6eTwGanbyN2ZxvTBSLuQ6DZhgeMshg" : {
"lamports" : 953520 ,
"owner" : "Feature111111111111111111111111111111111111" ,
"executable" : false ,
"rentEpoch" : 0 ,
"data" : "AQQKUQ4AAAAA" ,
"parsedData" : null
}
}
}
}
surfnet_streamAccount
Registers an account for streaming, downloading it from the datasource every time rather than caching it in the SVM.
Parameters
The base-58 encoded public key of the account to stream.
Configuration for the stream operation. Show properties Hide properties
If true, also streams accounts owned by the specified account.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_streamAccount",
"params": [
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri",
{
"includeOwnedAccounts": false
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254789 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_streamAccounts
Registers multiple accounts for streaming from the datasource in a single batch call. See also surfnet_streamAccount.
Parameters
List of accounts to register for streaming. Each entry specifies a pubkey and an optional flag to also stream accounts it owns.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_streamAccounts",
"params": [
[
{
"pubkey": "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri",
"includeOwnedAccounts": false
}
]
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254789 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_offlineAccount
Prevents an account (and optionally accounts it owns) from being downloaded from the remote RPC. See also surfnet_streamAccount.
Parameters
The base-58 encoded public key of the account or program to mark offline.
Configuration for the offline operation. Show properties Hide properties
If true, also marks accounts owned by the specified account as offline.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_offlineAccount",
"params": [
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri",
{
"includeOwnedAccounts": false
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254789 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_writeProgram
Writes program data at a specified offset, allowing deployment of large programs by sending data in chunks.
Parameters
The public key of the program account, as a base-58 encoded string.
Hex-encoded program data chunk to write, without a 0x prefix.
The byte offset at which to write this data chunk.
The base-58 encoded public key of the authority allowed to write to the program. Defaults to the system program if omitted.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_writeProgram",
"params": [
"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
"3b9aca00",
0,
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254789 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_registerScenario
Registers a scenario with account overrides for testing different network states.
Parameters
The scenario object containing overrides. Show properties Hide properties
Unique identifier for the scenario.
Description of this scenario.
List of override instances in this scenario.
The base slot from which relative slot offsets are calculated. If omitted, uses the current slot.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_registerScenario",
"params": [
{
"id": "<some-id>",
"name": "<some-name>",
"description": "<some-description>",
"overrides": [
{
"id": "<some-id>",
"templateId": "<some-templateid>",
"values": {},
"scenarioRelativeSlot": 123456789,
"label": "<some-label>",
"enabled": true,
"fetchBeforeUse": true,
"account": {
"pubkey": "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
}
}
],
"tags": [
"<some-tags>"
]
},
123456789
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254789 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_enableCheatcode
Re-enables one or more previously disabled Surfpool cheatcode RPC methods for the current session. See also surfnet_disableCheatcode.
Parameters
Which cheatcodes to enable: either the string “all” or an explicit list of method names.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_enableCheatcode",
"params": [
"all"
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254789 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_disableCheatcode
Disables one or more Surfpool cheatcode RPC methods for the current session. Without lockout=true, surfnet_enableCheatcode and surfnet_disableCheatcode themselves cannot be disabled. See also surfnet_enableCheatcode.
Parameters
Which cheatcodes to disable: either the string “all” or an explicit list of method names.
Optional control config. When lockout is true, surfnet_enableCheatcode and surfnet_disableCheatcode may themselves be disabled. Show properties Hide properties
If true, the disable operation is permitted to disable surfnet_enableCheatcode and surfnet_disableCheatcode themselves, locking the cheatcode surface for the rest of the session.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_disableCheatcode",
"params": [
[
"surfnet_setAccount"
],
{
"lockout": false
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254789 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_resetNetwork
Resets the entire network to its initial state
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_resetNetwork",
"params": []
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254834 ,
"apiVersion" : "4.2.1"
},
"value" : null
}
}
surfnet_getStreamedAccounts
Retrieves the list of accounts registered for streaming
Result
Show properties Hide properties
Show properties Hide properties
Show properties Hide properties
Account public key as base-58 string
Whether owned accounts are also streamed
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_getStreamedAccounts",
"params": []
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254789 ,
"apiVersion" : "4.2.1"
},
"value" : {
"accounts" : [
{
"pubkey" : "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri" ,
"includeOwnedAccounts" : false
}
]
}
}
}
surfnet_getSurfnetInfo
Retrieves Surfnet network information
Result
Show properties Hide properties
Show properties Hide properties
Show properties Hide properties
Unix timestamp when execution started
Unix timestamp when execution completed (null if still running)
Identifier of the runbook
List of errors encountered during execution
Startup progress of the Surfnet (Surfpool 1.6 and later) Show properties Hide properties
Startup phase, ready once the Surfnet is serving requests
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "surfnet_getSurfnetInfo",
"params": []
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254789 ,
"apiVersion" : "4.2.1"
},
"value" : {
"runbookExecutions" : [],
"startup" : {
"phase" : "ready" ,
"planSealed" : true ,
"tasks" : [],
"error" : null
}
}
}
}