Indexer setups
By default, Dojo uses local_bitcoind as the source for imports and rescans.
This guide shows how to switch to advanced indexer setups.
All commands are to be copy and pasted into the terminal of your Dojo, then press ENTER.
Open indexer and node config files
Section titled “Open indexer and node config files”cd ~/dojo-app/docker/my-dojo/conf/nano docker-indexer.confIn a second terminal tab, open:
cd ~/dojo-app/docker/my-dojo/conf/nano docker-node.confUse local Electrs for imports and rescans
Section titled “Use local Electrs for imports and rescans”Set the following values in docker-indexer.conf:
INDEXER_INSTALL=onINDEXER_TYPE=electrsINDEXER_BATCH_SUPPORT=inactiveSet the following value in docker-node.conf:
NODE_ACTIVE_INDEXER=local_indexerElectrs typically needs several hours for first indexation.
Then apply changes:
cd ~/dojo-app/docker/my-dojo./dojo.sh upgradeUse local Fulcrum for imports and rescans
Section titled “Use local Fulcrum for imports and rescans”Set the following values in docker-indexer.conf:
INDEXER_INSTALL=onINDEXER_TYPE=fulcrumINDEXER_BATCH_SUPPORT=activeSet the following value in docker-node.conf:
NODE_ACTIVE_INDEXER=local_indexerFulcrum typically needs a longer first indexation than Electrs.
Then apply changes:
cd ~/dojo-app/docker/my-dojo./dojo.sh upgradeExpose local indexer API to external apps on your local machine
Section titled “Expose local indexer API to external apps on your local machine”This allows apps outside Docker (for example wallet software on the same computer) to connect to your internal Electrum server. Do not expose this API to the public internet.
Set the following values in docker-indexer.conf:
INDEXER_INSTALL=onINDEXER_EXTERNAL=onFor Linux, keep:
INDEXER_EXTERNAL_IP=127.0.0.1For macOS or Windows Docker hosts, set INDEXER_EXTERNAL_IP to the IP address of the Docker VM.
Then apply changes:
cd ~/dojo-app/docker/my-dojo./dojo.sh upgradeWith this setting:
electrsexposes50001(TCP)fulcrumexposes50001(TCP) and50002(TLS)
If you are using Fulcrum and want the onion URI for your server, run:
cd ~/dojo-app/docker/my-dojo./dojo.sh onionUse an external Electrum server for imports and rescans
Section titled “Use an external Electrum server for imports and rescans”Only use an Electrum server you control on your own trusted local network.
Set the following values in docker-indexer.conf:
INDEXER_INSTALL=offINDEXER_IP=TypeYourIndexerIPHereINDEXER_RPC_PORT=TypeYourIndexerPortHereINDEXER_PROTOCOL=tcpINDEXER_BATCH_SUPPORT=activeSet the following value in docker-node.conf:
NODE_ACTIVE_INDEXER=local_indexerIf your external server does not support batch requests, set:
INDEXER_BATCH_SUPPORT=inactiveIf your external server requires TLS, set:
INDEXER_PROTOCOL=tlsThen apply changes:
cd ~/dojo-app/docker/my-dojo./dojo.sh upgradeUse third-party explorer service (least private option)
Section titled “Use third-party explorer service (least private option)”If needed, Dojo can use a third-party service for imports and rescans.
Set the following value in docker-node.conf:
NODE_ACTIVE_INDEXER=third_party_explorerThen apply changes:
cd ~/dojo-app/docker/my-dojo./dojo.sh upgradeWarning: this option can reduce privacy compared to local_bitcoind or local_indexer.