A QR code generation API, written in Go, with a paywall that's payable via the Lightning Network
808
This Docker image contains an example API for the project "ln-paywall". For more info about the project visit https://github.com/philippgille/ln-paywall.
mkdir datatls.cert and invoice.macaroon from your lnd to the data directorydocker run -d --name qr-code -v $(pwd)/data:/root/data -p 8080:8080 philippgille/qr-code -addr "123.123.123.123:10009"curl http://localhost:8080/qrcurl -H "x-preimage: 119969c2338798cd56708126b5d6c0f6f5e75ed38da7a409b0081d94b4dacbf8" http://localhost:8080/qr?data=testtextThe response contains the QR code as PNG image.
You can try out a deployed version on https://lightning.ws.
-addr string
Address of the lnd node (including gRPC port) (default "localhost:10009")
-dataDir string
Relative path to the data directory, where tls.cert and invoice.macaroon are located (default "data/")
-price int
Price of one request in Satoshis (at an exchange rate of $1,000 for 1 BTC 1000 Satoshis would be $0.01) (default 1000)
Content type
Image
Digest
Size
7.9 MB
Last updated
about 8 years ago
docker pull philippgille/qr-code