Skip to main content

spork

spork "command"

Shows information about current state of sporks

yerbas-cli spork show

Arguments

ArgumentTypeDescription
"command"(string)The command to execute
Arguments:
1. "command" (string or set of strings, required) The command to execute

Output

ResultTypeDescription
.........
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

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