What is Nostr?
FuckBitchesGetWownero /
npub1hrs…gd3g
2022-12-20 23:20:07

FuckBitchesGetWownero on Nostr: Create an invoice (incoming) POST /api/v1/payments Headers {"X-Api-Key": ...

Create an invoice (incoming)
POST /api/v1/payments
Headers
{"X-Api-Key": "a81c945227a64ca6895829ac55fb1be6"}
Body (application/json)
{"out": false, "amount": <int>, "memo": <string>, "unit": <string>, "webhook": <url:string>, "internal": <bool>}
Returns 201 CREATED (application/json)
{"payment_hash": <string>, "payment_request": <string>}
Curl example
curl -X POST https://legend.lnbits.com/api/v1/payments -d '{"out": false, "amount": <int>, "memo": <string>, "webhook": <url:string>, "unit": <string>}' -H "X-Api-Key: a81c945227a64ca6895829ac55fb1be6" -H "Content-type: application/json"
Author Public Key
npub1hrsrqpleeqtjls9xevdcx348tkj685re8u7lxak899kdqfprknuqr4gd3g