Skip to content

Simple Express server for testing Lightning Addresses with a LN service

License

Notifications You must be signed in to change notification settings

blastshielddown/ln-addr-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple Express server for testing Lightning Addresses with a LN service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published