1

What does the -server option do in bitcoin node? https://en.bitcoin.it/wiki/Running_Bitcoin says 'Accept command line and JSON-RPC commands'. However I can't see any difference whatsoever. In both cases I'm able to curl my request as well as use the cli.

1

As stated by the help,

  -server
       Accept command line and JSON-RPC commands

You may however also have to check if this configuration parameter has been enabled by your local configuration, usually a file called bitcoin.conf, unless configured using the -conf parameter to bitcoind.

On linux builds, this should default to ~/.bitcoin/bitcoin.conf, on Mac OS X ~/Library/Application\ Support/Bitcoin/bitcoin.conf

In this file, you can explicitly configure the server as off using the server configuration parameter.

server=0

You can alternatively pass a parameter as 1 (enabled) or 0 (disabled)

bitcoind -server=0

You should not be able to access your server assuming this has been toggled to 0.

The headless daemon bitcoind has the JSON-RPC API enabled by default, the GUI bitcoin-qt has it disabled by default.

  • Didn't know it was enabled by default, they never mentioned it in the docs. This makes sense, I've never actually tried setting it to 0, only removing it. Thanks. – zabbir Feb 17 at 21:03
  • Pleasure. The documentation referring to this is here. github.com/bitcoin/bitcoin/blob/master/doc/… Please accept this answer if it has answered your question. – Gr0kchain Feb 17 at 21:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.