First, set up Boltz Regtest. Then clone this repository and build the plugin:
git clone https://github.com/BoltzExchange/boltz-btcpay-plugin --recurse-submodules
cd boltz-btcpay-plugin/
dotnet build BTCPayServer.Plugins.Boltz
Next, exit the directory and set up BTCPay Server:
git clone https://github.com/btcpayserver/btcpayserver
cd btcpayserver/BTCPayServer
echo "{
\"DEBUG_PLUGINS\": \"/home/USER/boltz-btcpay-plugin/BTCPayServer.Plugins.Boltz/bin/Debug/net8.0/BTCPayServer.Plugins.Boltz.dll\"
}" > appsettings.dev.json
dotnet run --launch-profile Bitcoin -c Debug
Where /home/USER/boltz-btcpay-plugin is the path to the Boltz BTCPay Plugin directory.
You might have to update the client binaries to latest master.
git clone https://github.com/BoltzExchange/boltz-client
cd boltz-client
make
cp ./boltzd ./boltzcli ~/.btcpayserver/RegTest/LocalStorage/Boltz/bin/linux_amd64/
In order to run with the previously setup regtest environnment, you need to open launchsettings.json:
cd BTCPayServer/Properties
nano launchsettings.json
Add the following launch profile to use the boltz regtest: