Configuring Etherscan (explora) to point to Bitcoin Bitcoind Servers on Ubuntu
As you have two servers running, one for the full Bitcoin blockchain (Bitcoind daemon v0.18.1) and a single page website for explora (Etherscan), you’re likely looking to integrate these two services into a unified workflow. Unfortunately, explora relies on Bitcoind data to function, which is synchronized with the main Blockchain.
To configure Etherscan (esplora) to point to your Bitcoin Bitcoind servers, follow these steps:
Step 1: Update explores configuration
Open the config.json
file in the /usr/local/etherscan/
directory of both Ubuntu server instances. This file contains settings for explores.
For example:
{
"ip": "127.0.0.1",
"port": 8545,
"blockchain": {
"server": "
"rpcuser": "your_username",
"rpcpassword": "your_password"
}
}
Replace with the URL of your Bitcoind daemon (v0.18.1) in order to synchronize data.
Step 2: Update Bitcoind settings on Ubuntu
Update the/etc/bitcoin/bitcoin.conffile to point to the correct IP address and port for your Bitcoind server:
sudo nano /etc/bitcoin/bitcoin.conf
Add the following lines:
listen [“0.0.0.0”, “127.0.0.1”]
server [“ “
Replace your_bitcoind_ipwith your Bitcoind server IP address.
Step 3: Restart explora and Bitcoind
Restart theesploraservice and the
bitcoin-daemonservice on both Ubuntu servers:
sudo systemctl restart explores
sudo systemctl restart bitcoin
Verify configuration
After restarting, you should see data from your Bitcoin blockchain being displayed in the explora interface.
Troubleshooting tips:
- If explora is still not displaying data, check the config.json` file for any errors or inconsistencies.
- Verify that Bitcoind is running and synchronized with the main Blockchain at both server instances.
- Ensure that the IP address used by explora in the configuration file matches the one on your Bitcoin servers.
By following these steps, you should be able to configure Etherscan (esplora) to point to your Bitcoin Bitcoind servers, allowing for a unified workflow and more efficient data management.
Leave a Reply