Dies ist eine alte Version des Dokuments!
Mr.Bit@liebt-dich.info
BenutzerID: cb9c0cd457be429487906c17533c3a37
Benutzername: liebtdich
Passwort: lnMr.Bit Vorname Mr. Nachname Bit Anbieter für Authentifizierung: lnbits
https://legend.lnbits.com/wallet?&wal=31d1cad433cd4e40a3e5d3e50a04ca73
https://legend.lnbits.com/docs
GET /api/v1/wallet
Headers
{"X-Api-Key": "7e479ca6ec734cfcb19c698bde31920a"}
Returns 200 OK (application/json)
{"id": <string>, "name": <string>, "balance": <int>}
Curl example
curl https://legend.lnbits.com/api/v1/wallet -H "X-Api-Key: 7e479ca6ec734cfcb19c698bde31920a"
POST /api/v1/payments
Headers
{"X-Api-Key": "7e479ca6ec734cfcb19c698bde31920a"}
Body (application/json)
{"out": false, "amount": <int>, "memo": <string>, "expiry": <int>, "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>}' -H "X-Api-Key: 7e479ca6ec734cfcb19c698bde31920a" -H "Content-type: application/json"