- Copy
.env.sample
to.env.local
and fill it out with bitcoind and lnd connection info - Run
cargo build && cargo start
curl -X POST \
http://localhost:3001/api/onchain \
-H 'Content-Type: application/json' \
-d '{"sats":10000,"address":"bcrt1..."}'
curl -X POST \
http://localhost:3001/api/lightning \
-H 'Content-Type: application/json' \
-d '{"bolt11": "..."}'
curl -X POST \
http://localhost:3001/api/bolt11 \
-H 'Content-Type: application/json' \
-d '{"amount_sats": 1234}'
curl -X POST \
http://localhost:3001/api/channel \
-H 'Content-Type: application/json' \
-d '{"capacity": 2468,"push_amount": 1234,"pubkey":"023...","host":"127.0.0.1:9735"}'