This plugin extends BTCPay Server to enable users to receive payments via Litecoin MWEB.
Configure this plugin using the following environment variables:
| Environment variable | Description | Example |
|---|---|---|
| BTCPAY_LTC_MWEB_DAEMON_URI | Required. The URI of the mwebd RPC interface. | http://127.0.0.1:12345 |
BTCPay Server's Docker deployment simplifies the setup by automatically configuring these variables.
If you are a developer maintaining this plugin, in order to maintain this plugin, you need to clone this repository with --recurse-submodules:
git clone --recurse-submodules https://github.com/ltcmweb/btcpayserver-ltcmweb-pluginThen run the tests dependencies
docker-compose up -d devThen create the appsettings.dev.json file in btcpayserver/BTCPayServer, with the following content:
{
"DEBUG_PLUGINS": "..\\..\\Plugins\\LitecoinMweb\\bin\\Debug\\net8.0\\BTCPayServer.Plugins.LitecoinMweb.dll",
"LTC_MWEB_DAEMON_URI": "http://127.0.0.1:12345"
}This will ensure that BTCPay Server loads the plugin when it starts.
Then start the development dependencies via docker-compose:
docker-compose up -d devFinally, set up BTCPay Server as the startup project in Rider or Visual Studio.
If you want to reset the environment you can run:
docker-compose down -v
docker-compose up -d devNote: Running or compiling the BTCPay Server project will not automatically recompile the plugin project. Therefore, if you make any changes to the project, do not forget to build it before running BTCPay Server in debug mode.
We recommend using Rider for plugin development, as it supports hot reload with plugins. You can edit .cshtml files, save, and refresh the page to see the changes.
Visual Studio does not support this feature.
BTCPay Server maintains its own deployment stack project to enable users to easily update or deploy additional infrastructure (such as nodes).
Litecoin nodes are defined in this Docker Compose file.
The Litecoin images are also maintained in the dockerfile-deps repository. While using the dockerfile-deps for future versions of Litecoin Dockerfiles is optional, maintaining the Docker Compose Fragment is necessary.
Users can install Litecoin by configuring the BTCPAYGEN_CRYPTOX environment variables.
For example, after ensuring BTCPAYGEN_CRYPTO2 is not already assigned to another cryptocurrency:
BTCPAYGEN_CRYPTO2="ltc"
. btcpay-setup.sh -iThis will automatically configure Litecoin in their deployment stack. Users can then run btcpay-update.sh to pull updates for the infrastructure.
Note: Adding Litecoin to the infrastructure is not recommended for non-advanced users. If the server specifications are insufficient, it may become unresponsive.
Lunanode, a VPS provider, offers an easy way to provision the infrastructure for BTCPay Server, then it installs the Docker Compose deployment on the provisioned VPS. The user can select Litecoin during provisioning, then the resulting VPS have a Litecoin deployed automatically, without the need for the user to use the command line. (But the user will still need to install this plugin manually)