Administrative controls for managing the Surfnet instance, plugins, and system configuration.
exit
Immediately shuts down the RPC server.
| Field | Type | Description |
|---|---|---|
result | null | exit - Immediately shuts down the RPC server |
{
"jsonrpc": "2.0",
"id": 1,
"method": "exit",
"params": []
}reloadPlugin
Reloads a runtime plugin with new configuration.
| Name | Type | Description |
|---|---|---|
name* | string | The name of the plugin to reload. |
configFile* | string | The path to the new configuration file for the plugin. |
| Field | Type | Description |
|---|---|---|
configFile | string | |
name | string |
{
"jsonrpc": "2.0",
"id": 1,
"method": "reloadPlugin",
"params": [
"<some-name>",
"<some-configfile>"
]
}unloadPlugin
Unloads a runtime plugin.
| Name | Type | Description |
|---|---|---|
name* | string | The name of the plugin to unload. |
| Field | Type | Description |
|---|---|---|
name | string |
{
"jsonrpc": "2.0",
"id": 1,
"method": "unloadPlugin",
"params": [
"<some-name>"
]
}loadPlugin
Dynamically loads a new plugin into the runtime from a configuration file.
| Name | Type | Description |
|---|---|---|
configFile* | string | The path to the configuration file for the new plugin. |
| Field | Type | Description |
|---|---|---|
configFile | string |
{
"jsonrpc": "2.0",
"id": 1,
"method": "loadPlugin",
"params": [
"<some-configfile>"
]
}listPlugins
Returns a list of all currently loaded plugin names.
| Field | Type | Description |
|---|---|---|
result | array<string> | listPlugins - Lists all loaded plugins |
{
"jsonrpc": "2.0",
"id": 1,
"method": "listPlugins",
"params": []
}rpcAddress
Returns the address of the RPC server.
| Field | Type | Description |
|---|---|---|
ip | string | |
port | integer |
{
"jsonrpc": "2.0",
"id": 1,
"method": "rpcAddress",
"params": []
}setLogFilter
Sets a filter for log messages in the system.
| Name | Type | Description |
|---|---|---|
filter* | string | The log filter string to apply. |
| Field | Type | Description |
|---|---|---|
result | null | setLogFilter - Sets log filter |
{
"jsonrpc": "2.0",
"id": 1,
"method": "setLogFilter",
"params": [
"<some-filter>"
]
}startTime
Returns the system start time.
| Field | Type | Description |
|---|---|---|
nanos | integer | Nanoseconds |
secsSinceEpoch | integer | Seconds since Unix epoch |
{
"jsonrpc": "2.0",
"id": 1,
"method": "startTime",
"params": []
}addAuthorizedVoter
Adds an authorized voter to the system.
| Name | Type | Description |
|---|---|---|
keypairFile* | string | Path to the keypair file for the authorized voter. |
| Field | Type | Description |
|---|---|---|
result | null | addAuthorizedVoter - Adds authorized voter |
{
"jsonrpc": "2.0",
"id": 1,
"method": "addAuthorizedVoter",
"params": [
"<some-keypairfile>"
]
}addAuthorizedVoterFromBytes
Adds an authorized voter to the system using a byte-encoded keypair.
| Name | Type | Description |
|---|---|---|
keypair* | array[integer] | Byte array representing the keypair for the authorized voter. |
| Field | Type | Description |
|---|---|---|
result | null | addAuthorizedVoterFromBytes - Adds voter from bytes |
{
"jsonrpc": "2.0",
"id": 1,
"method": "addAuthorizedVoterFromBytes",
"params": [
[
0
]
]
}removeAllAuthorizedVoters
Removes all authorized voters from the system.
| Field | Type | Description |
|---|---|---|
result | null | removeAllAuthorizedVoters - Removes all voters |
{
"jsonrpc": "2.0",
"id": 1,
"method": "removeAllAuthorizedVoters",
"params": []
}setIdentity
Sets the identity for the system using the provided keypair.
| Name | Type | Description |
|---|---|---|
keypairFile* | string | Path to the keypair file to be used as the node's identity. |
requireTower* | boolean | Boolean indicating if a tower is required for this identity. |
| Field | Type | Description |
|---|---|---|
result | null | setIdentity - Sets cluster identity |
{
"jsonrpc": "2.0",
"id": 1,
"method": "setIdentity",
"params": [
"<some-keypairfile>",
true
]
}setIdentityFromBytes
Sets the identity for the system using a keypair provided as a byte array.
| Name | Type | Description |
|---|---|---|
identityKeypair* | array[integer] | Byte array representing the identity keypair. |
requireTower* | boolean | Boolean indicating if a tower is required for this identity. |
| Field | Type | Description |
|---|---|---|
result | null | setIdentityFromBytes - Sets identity from bytes |
{
"jsonrpc": "2.0",
"id": 1,
"method": "setIdentityFromBytes",
"params": [
[
0
],
true
]
}setStakedNodesOverrides
Sets the overrides for staked nodes using a specified path.
| Name | Type | Description |
|---|---|---|
path* | string | Path to the file containing staked nodes overrides. |
| Field | Type | Description |
|---|---|---|
result | null | setStakedNodesOverrides - Sets staked nodes overrides |
{
"jsonrpc": "2.0",
"id": 1,
"method": "setStakedNodesOverrides",
"params": [
"<some-path>"
]
}repairShredFromPeer
Repairs a shred from a peer node in the network.
| Name | Type | Description |
|---|---|---|
pubkey | string | The public key of the peer to repair from, as a base-58 encoded string. |
slot* | integer | The slot of the shred to repair. |
shredIndex* | integer | The index of the shred to repair. |
| Field | Type | Description |
|---|---|---|
result | null | repairShredFromPeer - Repairs shred from peer |
{
"jsonrpc": "2.0",
"id": 1,
"method": "repairShredFromPeer",
"params": [
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri",
123456789,
0
]
}setRepairWhitelist
Sets the whitelist of nodes allowed to repair shreds.
| Name | Type | Description |
|---|---|---|
whitelist* | array[string] | A list of public keys (base-58 encoded strings) to set as the repair whitelist. |
| Field | Type | Description |
|---|---|---|
result | null | setRepairWhitelist - Sets repair whitelist |
{
"jsonrpc": "2.0",
"id": 1,
"method": "setRepairWhitelist",
"params": [
[
"<some-whitelist>"
]
]
}getSecondaryIndexKeySize
Retrieves the size of the secondary index key for a given account.
| Name | Type | Description |
|---|---|---|
pubkeyStr* | string | The public key of the account to get the secondary index key size for, as a base-58 encoded string. |
| Field | Type | Description |
|---|---|---|
result | integer | getSecondaryIndexKeySize - Gets secondary index key size |
{
"jsonrpc": "2.0",
"id": 1,
"method": "getSecondaryIndexKeySize",
"params": [
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
]
}setPublicTpuAddress
Sets the public TPU (Transaction Processing Unit) address.
| Name | Type | Description |
|---|---|---|
publicTpuAddr* | string | The public TPU address as a string. |
| Field | Type | Description |
|---|---|---|
result | null | setPublicTpuAddress - Sets public TPU address |
{
"jsonrpc": "2.0",
"id": 1,
"method": "setPublicTpuAddress",
"params": [
"<some-publictpuaddr>"
]
}setPublicTpuForwardsAddress
Sets the public TPU forwards address.
| Name | Type | Description |
|---|---|---|
publicTpuForwardsAddr* | string | The public TPU forwards address as a string. |
| Field | Type | Description |
|---|---|---|
result | null | setPublicTpuForwardsAddress - Sets public TPU forwards address |
{
"jsonrpc": "2.0",
"id": 1,
"method": "setPublicTpuForwardsAddress",
"params": [
"<some-publictpuforwardsaddr>"
]
}Is this page helpful?