Skip to main content

spork

RPC help captured from Yerbas Core 4.0.1.4 (f0e2dde).

Use ./yerbas-cli help spork on your node for help. In the GUI console omit yerbas-cli. HTTP examples use mainnet RPC port 15419; network-specific defaults and availability can differ.

spork "command"

Shows information about current state of sporks

Arguments:
1. "command" (string, required) 'show' to show all current spork values, 'active' to show which sporks are active

Result:
For 'show':
{
"SPORK_NAME" : spork_value, (number) The value of the specific spork with the name SPORK_NAME
...
}
For 'active':
{
"SPORK_NAME" : true|false, (boolean) 'true' for time-based sporks if spork is active and 'false' otherwise
...
}

Examples:
> yerbas-cli spork show
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "spork", "params": ["show"] }' -H 'content-type: text/plain;' http://127.0.0.1:15419/