1. Getting faucet and testing Spark <> L1 transfers

We’ve deployed our own internal Regtest environment to simplify local development and testing. To interact with Spark on Regtest, you can use the Spark Regtest Faucet to request funds.

  • Username: hackathon

  • Password: MakeBitcoinMoneyAgain

Keep your balance on Spark below 100,000 sats — going over may cause issues

2. Paying an invoice directly from regtest

You can pay invoices using the Lightning Command Line tool in the spark repo. Below are the set up instructions:

Git clone the repo:

git clone https://github.com/buildonspark/spark-sdk.git

Go to the tools folder:

cd spark-sdk/tools/paylightning

Install dependencies:

brew install rust

Verify rust is installed:

rustc --version
cargo --version

Run the Tool:

cargo run -- "your-lightning-invoice"

On first run, the tool will download a few dependencies before processing the Lightning invoice. Subsequent runs will be faster, as dependencies are already in place