Custom backend in Trezor Suite
Running your own node can offer additional peace of mind as personal data are never shared externally. The concept can be too advanced for some users, but don't worry, as it is still completely safe to continue using the default backend settings, which connect Trezor Suite to SatoshiLabs’ nodes. These nodes are run by us and operate on open-source Blockbook software, and do not keep track of user data.
Running a local instance of Trezor Suite
You can run a local instance of Trezor Suite on your computer. Together with a local Blockbook server, you can be completely independent from connecting to SatoshiLabs servers.
How to install a local instance of Trezor Suite
1. Install Python. (Guide for Windows and Linux)
2. Download Trezor Suite from https://suite.trezor.io/
3. Extract it to a new folder and run:
For python3 users:
This will run a server at localhost:8000
4. Open localhost:8000 in your browser (Google Chrome or Firefox).
Running a local instance of Trezor Suite backend (Blockbook)
You can install and run Blockbook on your computer. With Trezor Suite installed and running as a local instance, you can be completely independent from connecting to SatoshiLabs servers.
To install it on Linux, please use this step-by-step guide:
1. To install Blockbook, you will need to use Linux Debian version 11 (Bullseye) or later.
Switch to root privileges before proceeding with the installation.
2. Install docker using this guide:
https://docs.docker.com/install/linux/docker-ce/debian/
3. Clone blockbook git:
4. Go to blockbook directory and run:
5. Go to blockbook/build directory and run:
6. Now you can start synchronizing with the network:
7. If you want to check the status of your synchronizing go to /opt/coins/data/<coin>/backend (eg., /opt/coins/data/bitcoin/backend) and check the status in debug.log file.
8. If the blockchain is fully synchronized, you can start installing your Blockbook. Go to the directory blockbook/build and run:
9. Run Blockbook:
10. Blockbook is now synchronizing with your blockchain, you can check the status in /opt/coins/blockbook/<coin>/logs/blockbook.INFO (eg. /opt/coins/blockbook/bitcoin/logs/blockbook.INFO) or by visiting https://localhost:<blockbook public port> (e.g., https://localhost:9130 for bitcoin)
11. After full synchronization, your Blockbook is now running at the localhost port.
12. Now you can connect Trezor Suite to your local Blockbook instance by using a custom backend:
- In Trezor Suite, go to Settings, and then select the Coins tab
- Place your cursor on Bitcoin, and click the settings gear icon
- In the Backends window, you can switch from ‘Trezor servers (default)’ to ‘Custom Blockbook server’ using the drop-down menu located at the top of the list of addresses.
- You can then add the backend details from Blockbook settings, and then click on the ‘Confirm’ button to complete the setup