Another way to back up your addresses with helpful data such as derivation path, and the address generation type from your bitcoin wallet. This approach require bitcoind running and bitcoin-cli to catch the list of descriptors and have legal access to it as the prerequisite.
- Download descriptors with public key and store it to file
descriptor_pubs.json
and copy it to directory_data
under this repository:
./bitcoin-cli listdescriptors > descriptor_pubs.json
- Download descriptors with root key and store it to file
descriptors.json
and copy it to directory_data
under this repository:
# 1. unlock wallet
./bitcoin-cli walletpassphrase "your-wallet-passphrase" 60
# 2. download descriptors
./bitcoin-cli listdescriptors true > descriptors.json
-
Configure
_data/env.json
with the correct value. You can provide it frombitcoin.conf
file where your bitcoin base directory is. -
Build project via command
make build-{your-os-version}
. You can find binary result on_build
directory.
After steps followed correctly and the structure should be:
.
├── _build
│ ├── btcd-darwin
│ └── btcd-linux
├── _data
│ ├── descriptor_pubs.json
│ ├── descriptors.json
│ └── env.json
Run binary from the root _build/btcd-{os-version}
and then you can check result in _data/derivation.csv
file.