nanotip
A simple web server for accepting lightning donations.
nanotip
generates Lightning invoices on the fly using your Lightning Charge server,
allowing users to setup a tip jar that accepts Lightning Network payments.
Powered by ⚡️ Lightning Charge.
Setup
Setup Lightning Charge, then:
$ npm install -g nanotip$ nanotipd --charge-token mySecretToken # defaults: --charge-url http://localhost:9112 --port 9115 nanotipd running on http://localhost:9115
See Lightning Charge for more help setting up
bitcoind
, lightningd
and charged
.
Note that nanotip
uses Lightning Charge's built-in checkout page, meaning that the Lightning Charge
server has to be publicly accessible to users. If users need to access it using a different URL
than the one used for communicating with the API, set --charge-public-url
.
CLI options
$ nanotipd --help Lightning Tip Box Usage $ nanotipd [options] Options -c, --charge-url <url> lightning charge server url [default: http://localhost:9112] -t, --charge-token <token> lightning charge access token [required] -P, --charge-public-url <url> url where charge is publicly accessible [default: {charge-url}] -m, --theme <name> pick theme from bootswatch.com [default: yeti] -l, --title <name> website title [default: Lightning Tip Box] -p, --port <port> http server port [default: 9115] -i, --host <host> http server listen address [default: 127.0.0.1] -u, --url <url> http server public url
License
MIT