> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Cheatcodes

> Testing utilities unique to Surfpool for state manipulation

## Clock Semantics

<Warning>
  **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.
</Warning>

For the SDK-level equivalents of the clock cheatcodes, see
[Time Travel](/developers/docs/tools/surfpool/sdk/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**

<ParamField body="pubkey" type="string" required>
  The public key of the account to update, as a base-58 encoded string. This identifies which account will be modified.
</ParamField>

<ParamField body="update" type="object" required>
  The account data to update. Contains the new values for lamports, owner, executable status, rent epoch, and data.

  <Expandable title="properties" defaultOpen>
    <ParamField body="data" type="string">
      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.
    </ParamField>

    <ParamField body="executable" type="boolean">
      Whether the account should be executable (true for program accounts, false for data accounts).
    </ParamField>

    <ParamField body="lamports" type="integer">
      The new balance in lamports (1 SOL = 1,000,000,000 lamports).
    </ParamField>

    <ParamField body="owner" type="string">
      The new owner program ID, as a base-58 encoded string.
    </ParamField>

    <ParamField body="rentEpoch" type="integer">
      The new rent epoch in which this account will next owe rent.
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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
      }
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="owner" type="string" required>
  The public key of the token account owner, as a base-58 encoded string. This is the wallet that owns the token account.
</ParamField>

<ParamField body="mint" type="string" required>
  The public key of the token mint, as a base-58 encoded string. This identifies the specific token type (e.g., USDC, SOL).
</ParamField>

<ParamField body="update" type="object" required>
  The token account data to update. Contains new values for balance, delegate, state, and authorities.

  <Expandable title="properties" defaultOpen>
    <ParamField body="amount" type="integer">
      The new token balance amount in the smallest unit (e.g., lamports for SOL, or the smallest token unit).
    </ParamField>

    <ParamField body="closeAuthority" type="string | &#x22;noAccount&#x22;">
      The new close authority that can close the account and recover rent.
    </ParamField>

    <ParamField body="delegate" type="string | &#x22;noAccount&#x22;">
      The new delegate account that can spend tokens on behalf of the owner.
    </ParamField>

    <ParamField body="delegatedAmount" type="integer">
      The new delegated amount that the delegate is authorized to spend.
    </ParamField>

    <ParamField body="state" type="string">
      The new account state (e.g., 'initialized', 'frozen', 'closed').
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="tokenProgram" type="string">
  The token program ID, as a base-58 encoded string. Defaults to SPL Token program if not specified.
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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"
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="sourceProgramId" type="string" required>
  The public key of the source program to clone, as a base-58 encoded string.
</ParamField>

<ParamField body="destinationProgramId" type="string" required>
  The public key of the destination program, as a base-58 encoded string.
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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"
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="transactionData" type="string" required>
  The transaction data to profile, as a base-64 encoded string. This should be a serialized VersionedTransaction.
</ParamField>

<ParamField body="tag" type="string">
  An optional tag to identify the profiling results. Useful for grouping related transaction profiles.
</ParamField>

<ParamField body="config" type="object">
  Configuration for the profile result, including encoding format and profiling depth.

  <Expandable title="properties" defaultOpen>
    <ParamField body="depth" type="string">
      The depth of profiling - 'transaction' for overall transaction profile, 'instruction' for per-instruction breakdown.
    </ParamField>

    <ParamField body="encoding" type="string">
      The encoding format for returned account data (e.g., 'base64', 'base58', 'jsonParsed').
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="computeUnits" type="object">
      Compute units estimation result

      <Expandable title="properties">
        <ResponseField name="computeUnitsConsumed" type="integer">
          Number of compute units consumed
        </ResponseField>

        <ResponseField name="errorMessage" type="string">
          Error message if estimation failed
        </ResponseField>

        <ResponseField name="logMessages" type="array">
          Log messages from the transaction
        </ResponseField>

        <ResponseField name="success" type="boolean">
          Indicates if the estimation was successful
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="state" type="object">
      Profile state containing pre and post execution states

      <Expandable title="properties">
        <ResponseField name="postExecution" type="object">
          Account states after execution
        </ResponseField>

        <ResponseField name="preExecution" type="object">
          Account states before execution
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

```bash Request
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"
      }
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="tag" type="string" required>
  The tag to retrieve profiling results for. Returns all transaction profiles that were tagged with this identifier.
</ParamField>

<ParamField body="config" type="object">
  Configuration for the profile result, including encoding format and profiling depth.

  <Expandable title="properties" defaultOpen>
    <ParamField body="depth" type="string">
      The depth of profiling - 'transaction' for overall transaction profile, 'instruction' for per-instruction breakdown.
    </ParamField>

    <ParamField body="encoding" type="string">
      The encoding format for returned account data (e.g., 'base64', 'base58', 'jsonParsed').
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="array<ProfileResultSchema>">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="computeUnits" type="object">
      Compute units estimation result

      <Expandable title="properties">
        <ResponseField name="computeUnitsConsumed" type="integer">
          Number of compute units consumed
        </ResponseField>

        <ResponseField name="errorMessage" type="string">
          Error message if estimation failed
        </ResponseField>

        <ResponseField name="logMessages" type="array">
          Log messages from the transaction
        </ResponseField>

        <ResponseField name="success" type="boolean">
          Indicates if the estimation was successful
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="state" type="object">
      Profile state containing pre and post execution states

      <Expandable title="properties">
        <ResponseField name="postExecution" type="object">
          Account states after execution
        </ResponseField>

        <ResponseField name="preExecution" type="object">
          Account states before execution
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

```bash Request
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"
      }
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="update" type="object" required>
  The supply data to update. Contains new values for total, circulating, and non-circulating SOL amounts.

  <Expandable title="properties" defaultOpen>
    <ParamField body="circulating" type="integer">
      The new circulating supply of SOL in lamports (total supply minus non-circulating).
    </ParamField>

    <ParamField body="nonCirculating" type="integer">
      The new non-circulating supply of SOL in lamports (locked in non-circulating accounts).
    </ParamField>

    <ParamField body="nonCirculatingAccounts" type="array">
      The new list of non-circulating account addresses that hold locked SOL.
    </ParamField>

    <ParamField body="total" type="integer">
      The new total supply of SOL in lamports across the entire network.
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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"
        ]
      }
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="programId" type="string" required>
  The public key of the program, as a base-58 encoded string. This is the program whose upgrade authority will be modified.
</ParamField>

<ParamField body="newAuthority" type="string">
  The public key of the new authority, as a base-58 encoded string. If omitted, the program will have no upgrade authority (immutable).
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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"
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="signatureOrUuid" type="object" required>
  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.

  <Expandable title="properties" defaultOpen>
    <ParamField body="uuid" type="string">
      A UUID string that uniquely identifies a transaction profile in the system.
    </ParamField>

    <ParamField body="signature" type="string">
      A transaction signature as a base-58 encoded string that identifies a specific transaction.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="config" type="object">
  Configuration for the profile result, including encoding format and profiling depth.

  <Expandable title="properties" defaultOpen>
    <ParamField body="depth" type="string">
      The depth of profiling - 'transaction' for overall transaction profile, 'instruction' for per-instruction breakdown.
    </ParamField>

    <ParamField body="encoding" type="string">
      The encoding format for returned account data (e.g., 'base64', 'base58', 'jsonParsed').
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="instructionProfiles" type="array" />

    <ResponseField name="key" type="UuidOrSignature" />

    <ResponseField name="readonlyAccountStates" type="object" />

    <ResponseField name="slot" type="integer" />

    <ResponseField name="transactionProfile" type="object">
      <Expandable title="properties">
        <ResponseField name="accountStates" type="object" />

        <ResponseField name="computeUnitsConsumed" type="integer" />

        <ResponseField name="errorMessage" type="string" />

        <ResponseField name="logMessages" type="array" />
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

```bash Request
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"
      }
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="idl" type="object" required>
  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.

  <Expandable title="properties" defaultOpen>
    <ParamField body="accounts" type="array" required>
      The IDL accounts array defining all account types that the program can create or interact with.
    </ParamField>

    <ParamField body="address" type="string" required>
      The program address that this IDL describes, as a base-58 encoded string.
    </ParamField>

    <ParamField body="constants" type="array" required>
      The IDL constants array defining constant values used by the program.
    </ParamField>

    <ParamField body="errors" type="array" required>
      The IDL errors array defining custom error types that the program can return.
    </ParamField>

    <ParamField body="events" type="array" required>
      The IDL events array defining events that the program can emit.
    </ParamField>

    <ParamField body="instructions" type="array" required>
      The IDL instructions array defining all available program instructions and their parameters.
    </ParamField>

    <ParamField body="metadata" type="string" required>
      The IDL metadata containing program name, version, and description information.
    </ParamField>

    <ParamField body="state" type="string">
      The IDL state object defining the program's state account structure (if applicable).
    </ParamField>

    <ParamField body="types" type="array" required>
      The IDL types array defining custom data types used by the program.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="slot" type="integer">
  The slot at which to register the IDL. If omitted, uses the latest slot. This determines when the IDL becomes active for account parsing.
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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": []
      }
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="programId" type="string" required>
  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.
</ParamField>

<ParamField body="slot" type="integer">
  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.
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="accounts" type="array<any>">
      The IDL accounts array defining all account types that the program can create or interact with.
    </ResponseField>

    <ResponseField name="address" type="string">
      The program address that this IDL describes, as a base-58 encoded string.
    </ResponseField>

    <ResponseField name="constants" type="array<any>">
      The IDL constants array defining constant values used by the program.
    </ResponseField>

    <ResponseField name="errors" type="array<any>">
      The IDL errors array defining custom error types that the program can return.
    </ResponseField>

    <ResponseField name="events" type="array<any>">
      The IDL events array defining events that the program can emit.
    </ResponseField>

    <ResponseField name="instructions" type="array<any>">
      The IDL instructions array defining all available program instructions and their parameters.
    </ResponseField>

    <ResponseField name="metadata" type="any">
      The IDL metadata containing program name, version, and description information.
    </ResponseField>

    <ResponseField name="state" type="any">
      The IDL state object defining the program's state account structure (if applicable).
    </ResponseField>

    <ResponseField name="types" type="array<any>">
      The IDL types array defining custom data types used by the program.
    </ResponseField>
  </Expandable>
</ResponseField>

```bash Request
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"
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="limit" type="integer">
  The maximum number of signatures to return. Defaults to 50 if not specified. Returns the most recent signatures first.
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="array<RpcLogsResponse>">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="err" type="object">
      <Expandable title="properties">
        <ResponseField name="errorType" type="string">
          Error type
        </ResponseField>

        <ResponseField name="message" type="string">
          Error message
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="logs" type="array<string>" />

    <ResponseField name="signature" type="string" />
  </Expandable>
</ResponseField>

```bash Request
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
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="config" type="object">
  Configuration specifying how to modify the clock. Can move to a specific epoch, slot, or timestamp. Provide exactly one of the fields below.

  <Expandable title="properties" defaultOpen>
    <ParamField body="absoluteEpoch" type="integer">
      Move to the specified absolute epoch number (each epoch = 432,000 slots).
    </ParamField>

    <ParamField body="absoluteSlot" type="integer">
      Move to the specified absolute slot number in the blockchain.
    </ParamField>

    <ParamField body="absoluteTimestamp" type="integer">
      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.
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="absoluteSlot" type="integer">
  Absolute root slot
</ResponseField>

<ResponseField name="blockHeight" type="integer">
  Block height
</ResponseField>

<ResponseField name="epoch" type="integer">
  Current epoch
</ResponseField>

<ResponseField name="slotIndex" type="integer">
  Current slot index within the epoch
</ResponseField>

<ResponseField name="slotsInEpoch" type="integer">
  Total number of slots in the epoch
</ResponseField>

<ResponseField name="transactionCount" type="integer">
  Current transaction count
</ResponseField>

```bash Request
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
      }
    ]
  }
'
```

```json Response
{
  "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**

<ResponseField name="absoluteSlot" type="integer">
  Absolute root slot
</ResponseField>

<ResponseField name="blockHeight" type="integer">
  Block height
</ResponseField>

<ResponseField name="epoch" type="integer">
  Current epoch
</ResponseField>

<ResponseField name="slotIndex" type="integer">
  Current slot index within the epoch
</ResponseField>

<ResponseField name="slotsInEpoch" type="integer">
  Total number of slots in the epoch
</ResponseField>

<ResponseField name="transactionCount" type="integer">
  Current transaction count
</ResponseField>

```bash Request
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": []
  }
'
```

```json Response
{
  "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**

<ResponseField name="absoluteSlot" type="integer">
  Absolute root slot
</ResponseField>

<ResponseField name="blockHeight" type="integer">
  Block height
</ResponseField>

<ResponseField name="epoch" type="integer">
  Current epoch
</ResponseField>

<ResponseField name="slotIndex" type="integer">
  Current slot index within the epoch
</ResponseField>

<ResponseField name="slotsInEpoch" type="integer">
  Total number of slots in the epoch
</ResponseField>

<ResponseField name="transactionCount" type="integer">
  Current transaction count
</ResponseField>

```bash Request
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": []
  }
'
```

```json Response
{
  "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**

<ParamField body="pubkey" type="string" required>
  The base-58 encoded public key of the account to reset.
</ParamField>

<ParamField body="config" type="object">
  Configuration for the reset operation.

  <Expandable title="properties" defaultOpen>
    <ParamField body="includeOwnedAccounts" type="boolean">
      If true, also resets accounts owned by the specified account.
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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
      }
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="config" type="object">
  Configuration for the export operation.

  <Expandable title="properties" defaultOpen>
    <ParamField body="includeParsedAccounts" type="boolean">
      If true, includes parsed account data in the snapshot.
    </ParamField>

    <ParamField body="filter" type="object">
      Filter configuration to limit which accounts are included.

      <Expandable title="properties">
        <ParamField body="includeProgramAccounts" type="boolean">
          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.
        </ParamField>

        <ParamField body="includeAccounts" type="array">
          List of specific account public keys to include. Pubkeys listed here bypass `excludeSysvars` and `excludeFeatureGates`, but are still removed if also present in `excludeAccounts`.
        </ParamField>

        <ParamField body="excludeAccounts" type="array">
          List of specific account public keys to exclude. Takes precedence over every other filter, including `includeAccounts`, `excludeSysvars`, and `excludeFeatureGates`.
        </ParamField>

        <ParamField body="excludeSysvars" type="boolean">
          If true, omit accounts owned by the sysvar program (`Sysvar1111111111111111111111111111111111111`). Defaults to false (fully backward compatible). Pubkeys explicitly listed in `includeAccounts` bypass this filter.
        </ParamField>

        <ParamField body="excludeFeatureGates" type="boolean">
          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.
        </ParamField>
      </Expandable>
    </ParamField>

    <ParamField body="scope" type="&#x22;network&#x22; | object">
      Scope to limit the accounts included. Options are 'network' (all accounts) or 'preTransaction' (accounts touched by a transaction).
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="object">
  Map of account public keys to their snapshots
</ResponseField>

```bash Request
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"
      }
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="pubkey" type="string" required>
  The base-58 encoded public key of the account to stream.
</ParamField>

<ParamField body="config" type="object">
  Configuration for the stream operation.

  <Expandable title="properties" defaultOpen>
    <ParamField body="includeOwnedAccounts" type="boolean">
      If true, also streams accounts owned by the specified account.
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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
      }
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="accounts" type="array[StreamAccountsEntry]" required>
  List of accounts to register for streaming. Each entry specifies a pubkey and an optional flag to also stream accounts it owns.
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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
        }
      ]
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="pubkey" type="string" required>
  The base-58 encoded public key of the account or program to mark offline.
</ParamField>

<ParamField body="config" type="object">
  Configuration for the offline operation.

  <Expandable title="properties" defaultOpen>
    <ParamField body="includeOwnedAccounts" type="boolean">
      If true, also marks accounts owned by the specified account as offline.
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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
      }
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="programId" type="string" required>
  The public key of the program account, as a base-58 encoded string.
</ParamField>

<ParamField body="data" type="string" required>
  Hex-encoded program data chunk to write, without a `0x` prefix.
</ParamField>

<ParamField body="offset" type="integer" required>
  The byte offset at which to write this data chunk.
</ParamField>

<ParamField body="authority" type="string">
  The base-58 encoded public key of the authority allowed to write to the program. Defaults to the system program if omitted.
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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"
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="scenario" type="object" required>
  The scenario object containing overrides.

  <Expandable title="properties" defaultOpen>
    <ParamField body="id" type="string" required>
      Unique identifier for the scenario.
    </ParamField>

    <ParamField body="name" type="string" required>
      Human-readable name.
    </ParamField>

    <ParamField body="description" type="string" required>
      Description of this scenario.
    </ParamField>

    <ParamField body="overrides" type="array[OverrideInstance]" required>
      List of override instances in this scenario.
    </ParamField>

    <ParamField body="tags" type="array[string]" required>
      Tags for categorization.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="slot" type="integer">
  The base slot from which relative slot offsets are calculated. If omitted, uses the current slot.
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="cheatcodesFilter" type="&#x22;all&#x22; | array" required>
  Which cheatcodes to enable: either the string "all" or an explicit list of method names.
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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"
    ]
  }
'
```

```json Response
{
  "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**

<ParamField body="cheatcodesFilter" type="&#x22;all&#x22; | array" required>
  Which cheatcodes to disable: either the string "all" or an explicit list of method names.
</ParamField>

<ParamField body="config" type="object">
  Optional control config. When `lockout` is true, `surfnet_enableCheatcode` and `surfnet_disableCheatcode` may themselves be disabled.

  <Expandable title="properties" defaultOpen>
    <ParamField body="lockout" type="boolean">
      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.
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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
      }
    ]
  }
'
```

```json Response
{
  "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**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="null" />

```bash Request
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": []
  }
'
```

```json Response
{
  "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**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="accounts" type="array<StreamedAccountInfoSchema>">
      <Expandable title="properties">
        <ResponseField name="pubkey" type="string">
          Account public key as base-58 string
        </ResponseField>

        <ResponseField name="includeOwnedAccounts" type="boolean">
          Whether owned accounts are also streamed
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

```bash Request
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": []
  }
'
```

```json Response
{
  "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**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="runbookExecutions" type="array<RunbookExecutionStatusSchema>">
      <Expandable title="properties">
        <ResponseField name="startedAt" type="integer">
          Unix timestamp when execution started
        </ResponseField>

        <ResponseField name="completedAt" type="integer">
          Unix timestamp when execution completed (null if still running)
        </ResponseField>

        <ResponseField name="runbookId" type="string">
          Identifier of the runbook
        </ResponseField>

        <ResponseField name="errors" type="array">
          List of errors encountered during execution
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="startup" type="object">
      Startup progress of the Surfnet (Surfpool 1.6 and later)

      <Expandable title="properties">
        <ResponseField name="phase" type="string">
          Startup phase, `ready` once the Surfnet is serving requests
        </ResponseField>

        <ResponseField name="planSealed" type="boolean" />

        <ResponseField name="tasks" type="array<object>" />

        <ResponseField name="error" type="string" />
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

```bash Request
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": []
  }
'
```

```json Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": {
      "slot": 457254789,
      "apiVersion": "4.2.1"
    },
    "value": {
      "runbookExecutions": [],
      "startup": {
        "phase": "ready",
        "planSealed": true,
        "tasks": [],
        "error": null
      }
    }
  }
}
```
