Dojo contains a suite of built in tools designed to allow you to effectively manage and interact with your instance of Dojo. This section will review the tools that are available and how to use them.
The Tor web browser is required to access the Maintenance Tool.
The Maintenance Tool is a web interface accessible through Tor and allowing to run maintenance operations. This tool can be seen as a graphical interface wrapping calls to web services provided by the REST API of MyDojo.
The Maintenance Tool is accessed through an onion address that can be retrieved with the ./dojo.sh onion
command of the Dojo shell script. The onion address of the Maintenance Tool is identified by the label API hidden service address (v3)
.
Accesses to the Maintenance Tool are protected by an authentication mechanism requiring the knowledge of an Admin Key.
This Admin Key is the value set for the NODE_ADMIN_KEY
configuration option. Additionally, you can now sign in using Auth47 by changing the configuration inside conf/docker-node.conf
and just assign your PayNym PM8T payment code to the NODE_PAYMENT_CODE
variable.
Which extended public key you choose will depend where your funds you are looking for are located within your wallet.
BIP44 XPUB = Your deposit account for addresses starting with a '1'
Segwit BIP49 YPUB = Your deposit account for addresses starting with a '3'
Segwit BIP84 ZPUB = Your deposit account for addresses starting with 'bc'
By default Samourai Wallet uses BIP84 ZPUB so it's likely that this is the one you will need if you are scanning for a balance in your deposit account.
Whirlpool pre-mix ZPUB = The account for any funds sent to Whirlpool that have not yet been mixed
Whirlpool post-mix ZPUB = The account where your mixed funds will be sat
Copy the public key of the account you wish to check using Dojo Maintenance Tool and pass this information to the computer you are using to access Dojo Maintenance Tool with.
The result should look similar to the below. The main things to look for here are...
If the derivation type is incorrect you can retype this xpub to the desired type.
Restart your Samourai Wallet app and wait for the loading line to disappear and navigate to the part of the wallet where you expect to see your funds eg Deposit (the wallet opens on this page), Premix or Postmix and you should see all of your sats.
If you have funds stored in multiple parts of the wallet simply repeat Steps 4-8 for the relevant extended public key.
The Tor web browser is required to access the Maintenance Tool.
MyDojo is packaged with a fully functional block explorer called BTC RPC Explorer.
The block explorer is accessed through an onion address that can be retrieved with the ./dojo.sh onion
command of the Dojo shell script. The onion address of the Maintenance Tool is identified by the label Explorer hidden service address (v3)
.
Access is protected by a password that is the value set for the EXPLORER_KEY
option in the Explorer configuration options. The user name can be any value.
You can pair your Samourai Wallet or your Sentinel with the block explorer of MyDojo in 2 steps.
This functionality is not yet available in Samourai Wallet
You can deactivate the block explorer hosted by MyDojo by setting the EXPLORER_INSTALL
configuration option to off
.
Not Recommended
A linux shell script supporting multiple commands allowing to interact with your Dojo (install, updates, Dojo logs, etc).
# Change the working directory to the directory storing the shell script
# (e.g.: Dojo has been installed in the home directory of a linux user named dojo)
> cd /home/dojo/dojoapp/docker/my-dojo
# Call the shell script (e.g. displays the help)
./dojo.sh help
The Dojo shell script must be called with a UNIX account allowed to access Docker on your machine. If Docker has been installed for root only (default), you must prefix all calls to
dojo.sh
with sudo.
The Dojo shell script is called in command line through a terminal window or through SSH if you’re running MyDojo on a headless operating system.
help
./dojo.sh help
version
./dojo.sh version
install
./dojo.sh install
The
uninstall
command should be called before calling theinstall
command again.
upgrade
./dojo.sh upgrade
Updates preserve all data previously stored by MyDojo (local database, blockchain data, indexes, etc)
start
./dojo.sh start
MyDojo should start automatically when the Docker service starts on the host machine.
stop
./dojo.sh stop
Always use this command before shutting down the host machine.
restart
./dojo.sh restart
This command is equivalent to running the
stop
andstart
commands.
logs
./dojo.sh logs [module] [options]
./dojo.sh logs
./dojo.sh logs bitcoind
./dojo.sh logs bitcoind
./dojo.sh logs tor
./dojo.sh logs indexer
./dojo.sh logs indexer
Core modules logs
Logs of the core modules of Dojo are available through the logs
command with the support of advanced options.
./dojo.sh logs [module_name] [-d display_mode] [-n nb_lines]
module_name
- Value identifying the module
api
| tracker
| pushtx
| pushtx_orchest
-d
- Option allowing to display a specific type of logs (info/error)
output info
| output logs
| error info
| error logs
-n
- Option allowing to display a historical record of a log instead of real time logs.
Integer
onion
./dojo.sh onion
bitcoin-cli
./dojo.sh bitcoin-cli fcn_name [fcn_args]
See Bitcoin Core documentation for a list of available functions.
clean
./dojo.sh clean
uninstall
./dojo.sh uninstall
This command is irreversible and removes all data previously stored by MyDojo on the host machine.