Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: dragospirvu75x on July 14, 2022, 02:56:04 PM



Title: Do I need rpcport=8332 in bitcoin.conf?
Post by: dragospirvu75x on July 14, 2022, 02:56:04 PM
Hello! Do I need rpcport=8332 and rpcauth in my bitcoin.conf? Or this is only if I want to use tor?


Title: Re: Do I need rpcport=8332 in bitcoin.conf?
Post by: PawGo on July 14, 2022, 03:35:48 PM
Hello! Do I need rpcport=8332 and rpcauth in my bitcoin.conf? Or this is only if I want to use tor?

This is used when you want to use any RPC client which will connect to your node (some scripts or for example electrum server).
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#JSON-RPC
Then you may authenticate with username/password, or if you have all locally on one machine, you may use authentication with .cookie file from server's directory.


Title: Re: Do I need rpcport=8332 in bitcoin.conf?
Post by: dragospirvu75x on July 14, 2022, 03:59:56 PM
Okay, thanks for the answer but it's too technical for me. If I want to run a full node to help the network, do I need to add these lines or it's enough server=1 and listen=1?


Title: Re: Do I need rpcport=8332 in bitcoin.conf?
Post by: PawGo on July 14, 2022, 04:00:59 PM
No, you do not need.


Title: Re: Do I need rpcport=8332 in bitcoin.conf?
Post by: dragospirvu75x on July 14, 2022, 04:15:56 PM
Okay, thanks for your help :)


Title: Re: Do I need rpcport=8332 in bitcoin.conf?
Post by: NotATether on July 14, 2022, 04:50:35 PM
rpcport=8332 is hardcoded as the default value if it is not specified in the Bitcoin.conf file, so you don't need to add this line if you want to enable the JSON-RPC interface (i.e. bitcoin-cli).


Title: Re: Do I need rpcport=8332 in bitcoin.conf?
Post by: dragospirvu75x on July 15, 2022, 01:48:55 PM
Okay, perfect