Skip to main content

setnetworkactive

setnetworkactive true|false

Disable/enable all p2p network activity.

yerbas-cli setnetworkactive true

Arguments

ArgumentTypeDescription
"state"(boolean)true to enable networking, false to disable
Arguments:
1. "state" (boolean, required) true to enable networking, false to disable

Output

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