Skip to content

Instantly share code, notes, and snippets.

@hectorchu
Last active February 19, 2025 15:30
Show Gist options
  • Save hectorchu/380c2a4b121d00aad51872eaf9acffa9 to your computer and use it in GitHub Desktop.
Save hectorchu/380c2a4b121d00aad51872eaf9acffa9 to your computer and use it in GitHub Desktop.
How to setup BTCPayServer with Litecoin MWEB

Setup btcpayserver-docker with the opt-add-ltcmweb fragment.

Install the plugin (or restart BTCPayServer if already installed).

Add MWEB View Keys to Litecoin MWEB Wallet settings in BTCPayServer admin.

They can be retrieved using Electrum MWEB (release-9 and later).

@sethforprivacy
Copy link

sethforprivacy commented Feb 19, 2025

Just ran through this (syncing now!) and thought I'd share more detailed instructions you're welcome to use :)

Enable Litecoin MWEB support in BTCPay Server's Docker configs

sudo su -
cd BTCPayServer/btcpayserver-docker
git pull
export BTCPAYGEN_ADDITIONAL_FRAGMENTS="$BTCPAYGEN_ADDITIONAL_FRAGMENTS;opt-add-ltcmweb"
. btcpay-setup.sh -i

(Optional) Enable standard Litecoin support in BTCPay Server's Docker configs

NOTE: Change "CRYPTO3" to the first available CRYPTO variable that is unused, i.e. if you already have btc and xmr enabled, use the following:

sudo su -
export BTCPAYGEN_CRYPTO3='ltc'
. btcpay-setup.sh -i

Install the BTCPay Server MWEB plugin

  1. Go to Manage Plugins as an admin in BTCPay
  2. Scroll down until you see the "BTCPay Server: Litecoin MWEB support plugin" plugin
  3. Hit install
  4. Hit Restart on the banner at the top of the page to activate the new plugin

Create view-only wallet in Electrum-LTC

  1. Download the latest release of Electrum-LTC from Github: https://github.com/ltcmweb/electrum-ltc/releases
  2. Install based on your OS
  3. Create a new wallet, selecting "Create a new MWEB seed" when prompted for a selection
  4. SAVE YOUR SEED PHRASE!
  5. Copy both MWEB view keys from the settings under Wallet > Information
  6. Paste these view keys under the config for Litecoin MWEB in BTCPay under Wallets > Litecoin MWEB on the left bar
  7. Hit save

@sethforprivacy
Copy link

One question out of this, actually -- for the view keys, we should copy and paste both view keys in the MWEB settings, correct?

@sethforprivacy
Copy link

sethforprivacy commented Feb 19, 2025

Beautiful sight!

Screenshot 2025-02-19 at 9 26 36 AM

@hectorchu
Copy link
Author

One question out of this, actually -- for the view keys, we should copy and paste both view keys in the MWEB settings, correct?

Yep. The first one is the scan key, the second the spend pubkey. Only the first is needed to detect payments, but both are required to generate addresses.

@sethforprivacy
Copy link

One question out of this, actually -- for the view keys, we should copy and paste both view keys in the MWEB settings, correct?

Yep. The first one is the scan key, the second the spend pubkey. Only the first is needed to detect payments, but both are required to generate addresses.

Awesome, thanks for the prompt reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment