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.jsonand copy it to directory_dataunder this repository:
./bitcoin-cli listdescriptors > descriptor_pubs.json- Download descriptors with root key and store it to file
descriptors.jsonand copy it to directory_dataunder this repository:
# 1. unlock wallet
./bitcoin-cli walletpassphrase "your-wallet-passphrase" 60
# 2. download descriptors
./bitcoin-cli listdescriptors true > descriptors.json-
Configure
_data/env.jsonwith the correct value. You can provide it frombitcoin.conffile where your bitcoin base directory is. -
Build project via command
make build-{your-os-version}. You can find binary result on_builddirectory.
After steps followed correctly and the structure should be:
.
├── _build
│ ├── btcd-darwin
│ └── btcd-linux
├── _data
│ ├── descriptor_pubs.json
│ ├── descriptors.json
│ └── env.jsonRun binary from the root _build/btcd-{os-version} and then you can check result in _data/derivation.csv file.