setnetworkactive
setnetworkactive true|false
Disable/enable all p2p network activity.
yerbas-cli setnetworkactive true
Arguments
Argument | Type | Description |
---|---|---|
"state" | (boolean) | true to enable networking, false to disable |
Arguments:
1. "state" (boolean, required) true to enable networking, false to disable
Output
Result | Type | Description |
---|---|---|
... | ... | ... |
Result:
{
...
}
Examples
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setnetworkactive", "params": [true] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/