Mr.Bit@liebt-dich.info {{ :benutzer:itbs:mrlnbits.png?direct|}} 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 ---- ===== API-Schlüssel und API-Dokumentation ===== * Wallet ID: 31d1cad433cd4e40a3e5d3e50a04ca73 * Admin key: 4606aaa1fd454a0b817aec3fa5fe9f5f * Invoice/read key: 7e479ca6ec734cfcb19c698bde31920a ==== Get wallet details ==== GET /api/v1/wallet Headers {"X-Api-Key": "7e479ca6ec734cfcb19c698bde31920a"} Returns 200 OK (application/json) {"id": , "name": , "balance": } Curl example curl https://legend.lnbits.com/api/v1/wallet -H "X-Api-Key: 7e479ca6ec734cfcb19c698bde31920a" ==== Create an invoice (incoming) ==== POST /api/v1/payments Headers {"X-Api-Key": "7e479ca6ec734cfcb19c698bde31920a"} Body (application/json) {"out": false, "amount": , "memo": , "expiry": , "unit": , "webhook": , "internal": } Returns 201 CREATED (application/json) {"payment_hash": , "payment_request": } Curl example curl -X POST https://legend.lnbits.com/api/v1/payments -d '{"out": false, "amount": , "memo": }' -H "X-Api-Key: 7e479ca6ec734cfcb19c698bde31920a" -H "Content-type: application/json" ==== Pay an invoice (outgoing) ==== ==== Decode an invoice ==== ==== Check an invoice (incoming or outgoing) ====