README
ln-autopay
Generate certs at https://www.sslforfree.com/
npm package to automate invoices for lightning node payments
this package requires Node 11.6+
git clone https://github.com/callmekurisu/ln-autopay.git
cd ln-autopay/
npm install
Install with npm
npm i ln-autopay
Example with Proof of Plays
node ln-invoice.js --tls="/home/user/.lnd/tls.cert" --admin="/home/user/.lnd/data/chain/bitcoin/mainnet/admin.macaroon" --port="7777" --memo="gimme the loot" --amount="1000" --sslkey="/path/to/ssl/key" --sslcert="/path/to/ssl/cert"
- Ensure the port is open on your server
Sample lnd.conf setup
[Application Options]
bitcoin.node=bitcoind
bitcoind.rpcuser=YOUR USERNAME
bitcoind.rpcpass=YOUR PASSWORD
bitcoin.active=1
bitcoin.mainnet=1
bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332
bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333
externalip=YOUR IP ADDRESS (OPTIONAL)
alias=YOUR ALIAS (OPTIONAL)