/bolt12-playground

Bolt 12 experience testing

Primary LanguageShell

Bolt 12 Playground

This Bolt 12 Playground provides a docker stack that comprises of bitcoind, LND, CLN, Eclair and LNDK. It connects everything together, initializes wallets, and creates channels between the nodes.

You can use this to get familiar with Bolt 12.

Setup

Start nodes:

docker compose up

Initialise the nodes:

./scripts/init.sh

Paying to an Eclair node

This is the only working scenario at the moment.

Generate a bolt 12 offer:

./bin/eclair-cli tipjarshowoffer

Decode a bolt 12 offer:

./bin/lndk-cli decode [BOLT12_OFFER]

Pay to bolt 12 offer:

./bin/lndk-cli pay-offer [BOLT12_OFFER] 10000

Paying to a CLN node

This is not working at the moment.

Generate a bolt 12 offer:

./bin/clncli offer 10000 "test offer from cln"

Decode a bolt 12 offer:

./bin/lndk-cli decode [BOLT12_OFFER]

Pay to bolt 12 offer:

./bin/lndk-cli pay-offer [BOLT12_OFFER]

Clean up

Clean everything:

./scripts/clean.sh