Getting the xpub from LND

The legendary Darthcoin has already given advice on how to extract an xpub from LND, but if you do not want to put a seed to an active LND node in another wallet, there’s another option.

To get to the xpub from an aezeed, you can use two tools that are freely available online:

The procedure is:

  1. Download these two HTML pages to your local computer.

  2. Disconnect from the internet (important, because the private key will be used) and open both pages.

  3. Enter the LND aezeed mnemonic from the LND app (private key, be careful!) into the ACS decode mnemonic field.

  4. Copy the value shown in the HD node root key base58 field (also private key!).

  5. In the second tool (MCC), paste the HD root key value into the BIP32 Root Key field.

  6. The xpub will then be shown in the Account Extended Public Key field.

  7. Delete all entered values and close the browser windows/tabs.

  8. Reconnect to the Internet. It’s advisable not to share your xpub with others. If someone gets hold of an xpub, they can see all transactions made with that wallet.