syscoinsetethstatus (4.1.2 RPC)
blockchain
control
generating
governance
governancewallet
mining
network
rawtransactions
syscoin
syscoinwallet
util
wallet
zmq
syscoinsetethstatus "syncing_status" highest_block
Sets ethereum syncing and network status for indication status of network sync.
Arguments:
1. syncing_status (string, required) Syncing status ether 'syncing' or 'synced'
2. highest_block (numeric, required) What the highest block height on Ethereum is found to be. Usually coupled with syncing_status of 'syncing'. Set to 0 if sync_status is 'synced'
Result:
{
"status": xx (string) Result
}
Examples:
> syscoin-cli syscoinsetethstatus "syncing" 7000000
> syscoin-cli syscoinsetethstatus "synced" 0
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "syscoinsetethstatus", "params": ["syncing", 7000000] }' -H 'content-type: text/plain;' http://127.0.0.1:8370/
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "syscoinsetethstatus", "params": ["synced", 0] }' -H 'content-type: text/plain;' http://127.0.0.1:8370/