Bitcoin: What is the proper configuration and command to run bitcoincore and use RPC over LAN?
Configuration of basic and remote procedures of Bitcoin (RPC) via the local network
Because the Bitcoin node is configuring on a small computer, it takes a significant step towards the decentralized cryptocurrency ecosystem. In this article, we will undergo an appropriate configuration and command to make Bitcoin Core and turn on remote connections (RPC) for remote access to the LAN.
previous requirements
- Bitcoin node that is made by Bitcoin Nore version 0.15.3 or rear
- Ethernet connection in your small computer
- Your computer IP address
Step by step instructions
1. Install the Bitcoin core
First, download and install the Bitcoin core from the official repository: [ (version 0.15.3 or newer)
Follow the installation instructions for your operating system:
* Ubuntu/Debian : Sudo apt-get installed Bitcoin-Qt
* Fedora/Centos/Rhel
: Sudo DNF Bitcoin-QT installation
* Arch Linux
:Sudo Pacman -s Bitcoin -qt
2. Start Bitcoin Core
Start the Bitcoin junction:
''
Bitcoin-QT
''
This will start the knot and start listening to incoming connections.
3. Configure RPC settings
To enable remote procedure (RPC) for your node, you need to configure some configurations:
- RPCUSER : Enter the username for your node.
- RPCPassword : Enter the password for your node.
- RPCPORT : Set the port number in which you will listen to your node.
For example:
''
Bitcoin-QT
> RPCSET
Rpcuser = myusername
Rpcpassword = myPassword
RPCPORT = 55555
Bitcoin-QT (version 0.15.3)
''
4. Start the RPC server
After configuring the RPC configuration, start the RPC server launched:
''
Bitcoin -qt -RPCPORT = 5555
''
This will start the RPC server and start listening to incoming connections with LAN.
Using the RPC to access your node
To access your node remotely with the RPC, you must:
- Get the Bitcoin address : You can start the Bitcoin address:
''
Bitcoincli Getaddresslist
''
Choose a new address and lead it in the file (for example, "Myaddress.txt).
2.
You can now use this URL RPC to send bitcoin transactions, recover information about transactions or perform other tasks related to nodes remotely.
Tips and variants
- If you want to use a specific port for RPC connections, you can specify it in “Bitcoin-QT”:
`''
Bitcoin -qt -RPCPORT = 8080
''
- You can also configure many RPC users and passwords using "-RPCUSERS":
''
Bitcoin -qt -rpcuser = Myusername -RPCPassword = MyPassword -rPCPORT = 55555
''
Remember to replaceIP address of your real computer.
According to these steps, you can configure the Bitcoin node in a small computer and turn on remote connections of procedures (RPC) for remote access to the LAN. Happy extraction!