Manage the LND onchain funds in Electrum Wallet
Last updated
Was this helpful?
Last updated
Was this helpful?
To create the master public keys (display the YPUB / ZPUB of the LND onchain wallet) to monitor and build transactions externally now you can use the command:
To sign an a PSBT:
Broadcast a transaction with LND:
Follow the discussion for more details in: https://github.com/raspiblitz/raspiblitz/issues/2192
Only do this if you understand the process. Never enter secrets into online webpages. Avoid browser windows with extensions. The Tor Browser is a good start (aim to use it offline).
Requires:
LND 24 words seed (+ passphrase if used)
useful to know the funded addresses
use a dedicated, secure operating system eg.
save online pages to disk and open in a new browser window
under Decode mnemonic
enter the 24 words seed (+ passphrase if used)
copy the HD node root key base58
enter the HD node root key base58
to BIP32 Root Key
under Derivation Path
Select the tab BIP84
for bc1.. addresses.
Select BIP49
for 3.. addresses.
Copy the private keys for the known or all addresses (Account Extended Private Key
).
When importing the private keys use the prefix:
p2wpkh:
before the private keys of bc1...
addresses
p2wpkh-p2sh:
before the private keys of 3...
addresses
Done. Once the Electrum Server finished scanning the funds should appear.
This is not a recommended way to manage the funds from the LND wallet, it is better be used as watch-only. Restoring from the seed in Electrum does not affect the offchain funds in channels. There is no guarantee that the change outputs from Electrum will appear in LND and vice versa.
Only do this if you understand the process. Never enter secrets into online webpages. Avoid browser windows with extensions. The Tor Browser is a good start (aim to use it offline).
Requires:
LND 24 words seed (+ passphrase if used)
save online pages to disk and open in a new browser window
under Decode mnemonic
enter the 24 words seed (+ passphrase if used)
copy the HD node root key base58
for BTC (Bitcoin, Native SegWit, BIP84) or BTC (Bitcoin, SegWit, BIP49)
enter the HD node root key base58
to BIP32 Root Key
under Derivation Path
Select the tab BIP84
for bc1.. addresses.
Select BIP49
for 3.. addresses.
Import the Account Extended Private Key
to Electrum for a hot wallet (not recommended).
Showing the use of:
Convert the xpub to zpub with this small python script:
Follow:
use a dedicated, secure operating system eg.
Import the Account Extended Public key
to Electrum for a watch only wallet. See:
Alternatively watch this video: