bitcoind.app
CommandsGuidesContact ↗
Home/Network/setnetworkactive
Network

setnetworkactive

Disable/enable all p2p network activity.

Parameters

statebooleanREQUIRED
true to enable networking, false to disable

Returns

booleanThe value passed in

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"setnetworkactive","params":[true]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

true
← Previous
setban
Next →
analyzepsbt

More Network Commands

addnodeclearbanneddisconnectnodegetaddednodeinfogetconnectioncountgetnettotals

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗