We will add BTC-RPC-EXPLORER to Samourai Dojo
------------------- ------------------- --------------------
| Samourai Wallet | | Sentinel | | Bitcoin full nodes |
------------------- ------------------- --------------------
|_______________________|_______________________|
|
------------
Tor network
------------
|
Host machine | (Tor hidden services)
______________________________ | ___________________________________________________________________
| | |
| ------------------- |
| | Tor Container | - - - - - - - - - - - - - - - - |
| ------------------- | |
| | | | |
| ------------------- | | |
| | Nginx Container | | dmznet | |
| ------------------- | | |
|- - - - - - - - - - - | - - - - - - - | - - - - - - - - - - - - - - - - - | - - - - - - - - - - - - |
| -------------------- -------------------- ---------------------------- |
| | Nodejs Container | ------ | Bitcoind Container | ------ | BTC-RPC-Explorer Container | |
| -------------------- -------------------- ---------------------------- |
| | |
| ------------------- |
| | MySQL Container | dojonet |
| ------------------- |
|____________________________________________________________________________________________________|
We need to edit Dojo torrc file (this file is located in /samourai-dojo-master/docker/my-dojo/tor) to create a hidden service (v3) to connect to our explorer. Add these lines under the services:
HiddenServiceDir /var/lib/tor/hsv3explorer
HiddenServiceVersion 3
HiddenServicePort 80 172.29.1.6:3002
dojo.sh stop
docker rmi $(docker images |grep 'samouraiwallet/dojo-tor')
dojo.sh start
git clone https://github.com/jochemin/dojo-explorer && cd dojo-explorer
Edit .env file.
Insert your Bitcoin Core RPC credentials
Save the file
docker-compose up -d
docker exec -it tor cat /var/lib/tor/hsv3explorer/hostname
Now you have your own Bitcoin explorer attached to your Dojo.