Author

Topic: JSON and bitcoin-Qt vs. bitcoind (Read 1259 times)

newbie
Activity: 43
Merit: 0
April 28, 2014, 07:39:37 PM
#6
Yes, you need server=1 only if you want the Bitcoin-Qt to also act as a server for JSON-RPC commands.

If you will be executing your JSON-RPC commands straight to bitcoind you don't need to set server=1.

Call bicoind with the -debug -printtoconsole command line arguments to get a responsive representation of what is going on in your terminal screen.

You can always test bitcoind's status by running bitcoin-cli getinfo and see if it responds.

You will have to add rpcuser and rpcpassword in your bitcoin.conf to access it from an external client.

This is exactly what I needed to know.  Thank you very much.
member
Activity: 66
Merit: 10
April 28, 2014, 02:50:31 PM
#5
Yes, you need server=1 only if you want the Bitcoin-Qt to also act as a server for JSON-RPC commands.

If you will be executing your JSON-RPC commands straight to bitcoind you don't need to set server=1.

Call bicoind with the -debug -printtoconsole command line arguments to get a responsive representation of what is going on in your terminal screen.

You can always test bitcoind's status by running bitcoin-cli getinfo and see if it responds.

You will have to add rpcuser and rpcpassword in your bitcoin.conf to access it from an external client.
newbie
Activity: 43
Merit: 0
April 28, 2014, 11:51:07 AM
#4
"server = 1" enables the server mode in Bitcoin Core, in other words you can run the GUI client and also send JSON-RPC commands to it. If you don't use "server = 1" and you still want to execute JSON-RPC commands then have to choose between the GUI client (Bitcoin Core) and bitcoind, as they cannot run concurrently for the same configuration. It makes no difference if applied as-is to bitcoind.

Do I understand correctly that I only need to set server=1 if I want to run bitcoin-Qt?

I will not be running bitcoin-Qt.

I want to run bitcoind and I want it to accept JSON-RPC commands from p2pool.

Do I set server=1 or server=0 or leave it commented out?
member
Activity: 66
Merit: 10
April 28, 2014, 07:50:07 AM
#3
In the example bitcoin.conf file from https://en.bitcoin.it/wiki/Running_Bitcoin it says

# server=1 tells Bitcoin-QT to accept JSON-RPC commands.

Does this also apply to bitcoind?


"server = 1" enables the server mode in Bitcoin Core, in other words you can run the GUI client and also send JSON-RPC commands to it. If you don't use "server = 1" and you still want to execute JSON-RPC commands then have to choose between the GUI client (Bitcoin Core) and bitcoind, as they cannot run concurrently for the same configuration. It makes no difference if applied as-is to bitcoind.
legendary
Activity: 1302
Merit: 1008
Core dev leaves me neg feedback #abuse #political
April 27, 2014, 11:05:36 PM
#2
I would guess so since they both appear to use the same conf file
newbie
Activity: 43
Merit: 0
April 27, 2014, 03:45:40 PM
#1
In the example bitcoin.conf file from https://en.bitcoin.it/wiki/Running_Bitcoin it says

# server=1 tells Bitcoin-QT to accept JSON-RPC commands.

Does this also apply to bitcoind?
Jump to: