public:setting_up_a_watch-only_bitcoin_wallet
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| public:setting_up_a_watch-only_bitcoin_wallet [2024/08/02 21:33] – created thomas | public:setting_up_a_watch-only_bitcoin_wallet [2024/08/02 22:07] (current) – thomas | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Setting up a watch-only Bitcoin wallet ====== | ====== Setting up a watch-only Bitcoin wallet ====== | ||
| - | ===== On an airgapped | + | ===== On an airgapped |
| First, set up a new wallet the usual way. Then, export the descriptors for that wallet via the following console command: | First, set up a new wallet the usual way. Then, export the descriptors for that wallet via the following console command: | ||
| Line 11: | Line 11: | ||
| :!: Do **not** add true as a parameter, as that would also export your private key descriptors! | :!: Do **not** add true as a parameter, as that would also export your private key descriptors! | ||
| - | Copy the descriptors array to a removable drive. It should look similar to this: | + | Copy the descriptors array to a removable drive. It should look similar to this (but you will probably see more): |
| < | < | ||
| - | { | + | [{ |
| " | " | ||
| " | " | ||
| Line 35: | Line 35: | ||
| ], | ], | ||
| " | " | ||
| - | } | + | }] |
| </ | </ | ||
| Note that you should only see descriptors with the key prefix '' | Note that you should only see descriptors with the key prefix '' | ||
| + | ===== On a connected, fully-synced computer ===== | ||
| + | Create a new, blank wallet that cannot store private keys. You can do so using the GUI or with the following console command: | ||
| + | |||
| + | < | ||
| + | bitcoin-cli createwallet walletname true true | ||
| + | </ | ||
| + | |||
| + | Then, import the descriptors in your wallet: | ||
| + | |||
| + | < | ||
| + | bitcoin-cli -rpcwallet=" | ||
| + | </ | ||
| + | |||
| + | If the original wallet already exists for a long time, the import may take a very long time and even time out, but will continue in the background. You can check the progress in the debug log. The blockchain will be checked as far back as needed to see if there are any addresses that match the descriptor. | ||
| ===== References ===== | ===== References ===== | ||
| [[https:// | [[https:// | ||
public/setting_up_a_watch-only_bitcoin_wallet.1722634396.txt.gz · Last modified: by thomas
