Documentation exported from Syscoin Core 4.2.0

spork (4.2.0 RPC)

blockchain

control

evo

evowallet

generating

governance

governancewallet

masternode

mining

network

rawtransactions

syscoin

syscoinwallet

util

wallet

zmq

spork "command" ( value )

Shows or updates the value of the specific spork. Requires "-sporkkey" to be set to sign the message for updating.

Arguments:
1. command    (string, required) "show" to show all current spork values, "active" to show which sporks are active or the name of the spork to update
2. value      (numeric) The new desired value of the spork if updating

Result (for command = "show"):
n    (numeric) The value of the specific spork with the name SPORK_NAME

Result (for command = "active"):
true|false    (boolean) 'true' for time-based sporks if spork is active and 'false' otherwise

Result (for updating):
"str"    (string) "success" if spork value was updated or this help otherwise

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