Admin Methods
These are operational methods used by node operators to configure identity, manage plugins, control log output, issue test airdrops, and monitor node-specific metrics. They are generally not relevant for end users or application developers.
reloadPlugin
AvailableReloads a runtime plugin with new configuration.
Parameters
configFile
requiredstring
The path to the new configuration file for the plugin.
name
requiredstring
The name of the plugin to reload.
unloadPlugin
AvailableUnloads a runtime plugin.
Parameters
name
requiredstring
The name of the plugin to unload.
loadPlugin
AvailableDynamically loads a new plugin into the runtime from a configuration file.
Parameters
configFile
requiredstring
The path to the configuration file for the new plugin.
listPlugins
AvailableReturns a list of all currently loaded plugin names.
Parameters
No parameters required
setLogFilter
AvailableSets a filter for log messages in the system.
Parameters
filter
requiredstring
The log filter string to apply.
addAuthorizedVoter
AvailableAdds an authorized voter to the system.
Parameters
keypairFile
requiredstring
Path to the keypair file for the authorized voter.
addAuthorizedVoterFromBytes
AvailableAdds an authorized voter to the system using a byte-encoded keypair.
Parameters
keypair
requiredarray[integer]
Byte array representing the keypair for the authorized voter.
removeAllAuthorizedVoters
AvailableRemoves all authorized voters from the system.
Parameters
No parameters required
setIdentity
AvailableSets the identity for the system using the provided keypair.
Parameters
keypairFile
requiredstring
Path to the keypair file to be used as the node's identity.
requireTower
requiredboolean
Boolean indicating if a tower is required for this identity.
setIdentityFromBytes
AvailableSets the identity for the system using a keypair provided as a byte array.
Parameters
identityKeypair
requiredarray[integer]
Byte array representing the identity keypair.
requireTower
requiredboolean
Boolean indicating if a tower is required for this identity.
setStakedNodesOverrides
AvailableSets the overrides for staked nodes using a specified path.
Parameters
path
requiredstring
Path to the file containing staked nodes overrides.
repairShredFromPeer
AvailableRepairs a shred from a peer node in the network.
Parameters
pubkey
string (optional)
The public key of the peer to repair from, as a base-58 encoded string.
shredIndex
requiredinteger
The index of the shred to repair.
slot
requiredinteger
The slot of the shred to repair.
setRepairWhitelist
AvailableSets the whitelist of nodes allowed to repair shreds.
Parameters
whitelist
requiredarray[string]
A list of public keys (base-58 encoded strings) to set as the repair whitelist.
getSecondaryIndexKeySize
AvailableRetrieves the size of the secondary index key for a given account.
Parameters
pubkeyStr
requiredstring
The public key of the account to get the secondary index key size for, as a base-58 encoded string.