The setnetworkactive RPC disables/enables all P2P network activity.

Parameter #1—whether to disable or enable all P2P network activity

Name Type Presence Description
Activate bool Required
(exactly 1)
Set to true to enable all P2P network activity. Set to false to disable all P2P network activity

Result—null or error on failure

Name Type Presence Description
result null Required
(exactly 1)
JSON null. The JSON-RPC error field will be set only if you entered an invalid parameter


pai-cli setnetworkactive true

Result (no output from pai-cli because result is set to null).

See also

  • GetNetworkInfo: returns information about the node’s connection to the network.