From f0403a2bbe5156d159a20e8c14491b16036fad86 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 6 May 2024 15:05:06 -0500 Subject: [PATCH] Add script to use NWC with stacker lnd (#1151) --- .gitignore | 5 ++++- scripts/nwc | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 scripts/nwc diff --git a/.gitignore b/.gitignore index 39b18a8b..3344814f 100644 --- a/.gitignore +++ b/.gitignore @@ -53,4 +53,7 @@ public/*-development.js docker-compose.*.yml *.sql !/prisma/migrations/*/*.sql -!/docker/db/seed.sql \ No newline at end of file +!/docker/db/seed.sql + +# nostr wallet connect +scripts/nwc-keys.json diff --git a/scripts/nwc b/scripts/nwc new file mode 100644 index 00000000..e497679d --- /dev/null +++ b/scripts/nwc @@ -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