Add script to use NWC with stacker lnd (#1151)

This commit is contained in:
ekzyis 2024-05-06 15:05:06 -05:00 committed by GitHub
parent 3f86981339
commit f0403a2bbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 1 deletions

5
.gitignore vendored
View File

@ -53,4 +53,7 @@ public/*-development.js
docker-compose.*.yml
*.sql
!/prisma/migrations/*/*.sql
!/docker/db/seed.sql
!/docker/db/seed.sql
# nostr wallet connect
scripts/nwc-keys.json

12
scripts/nwc Normal file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# https://github.com/benthecarman/nostr-wallet-connect-lnd
LND_HOST="${STACKER_LND_HOST:-localhost}"
LND_PORT="${STACKER_LND_GRPC_PORT:-10010}"
RUST_LOG=info nostr-wallet-connect-lnd \
--relay wss://relay.damus.io \
--lnd-host $LND_HOST --lnd-port $LND_PORT \
--macaroon-file docker/lnd/stacker/regtest/admin.macaroon --cert-file docker/lnd/stacker/tls.cert \
--keys-file scripts/nwc-keys.json