Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 787 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 787 Bytes

ln-addr-test

Simple Express server for testing Lightning Addresses with a LN service. Conforms to the spec outlined at lightning-address for generating an LNURL pay object.

Configured to run with an LND backend. Requires a .env file in the root with the following values:

MACAROON=<macaroon hex>
TLS_PATH=<tls cert path>
LND_PORT=<port>
LND_HOST=<host>

Setup: npm install

To run: npm start

Example: lnurlp endpoint:

curl http://127.0.0.1:3003/.well-known/lnurlp/testman

Returns: {"tag":"payRequest","callback":"http://127.0.0.1:3003/payment-request/id-1234"}

lnurl payment request:

curl http://127.0.0.1:3003/payment-request/id-1234\?amount\=10000

Returns lnurl pr