Skip to content

๐Ÿงช Regtest Setup โ€‹

This page describes how to setup a regtest environment for plugin development.

Regtest Setup Guide โ€‹

First, set up Boltz Regtest. The plugin keeps its regtest profile in .env.regtest and uses a repo-local compose override so it can run without the EVM services or a BTCPay-specific profile.

bash
./regtest-config/prepare.sh
cd regtest
set -a
source ../.env.regtest
set +a
docker compose down --volumes
./start.sh

Install the .NET SDK v8 (necessary to build the Plugin).

Then clone this repository and build the Plugin:

bash
git clone https://github.com/BoltzExchange/boltz-btcpay-plugin --recurse-submodules
cd boltz-btcpay-plugin/
ln --symbolic ~/path/to/regtest
make dev

You can also run the latest version of Boltz Client manually.

bash
git clone https://github.com/BoltzExchange/boltz-client
cd boltz-client
make
cp ./boltzd ./boltzcli ~/.btcpayserver/RegTest/LocalStorage/Boltz/bin/linux_amd64/

The Boltz Greenfield Swagger spec is generated manually BTCPayServer.Plugins.Boltz/Resources/swagger.boltz.json. If you make changes to the Greenfield API endpoints, make sure to update this file as part of the same change.