GET /api/v1/wallet
- {"X-Api-Key": ""}{"id": <string>, "name": <string>, "balance":
- <int>}
- curl api/v1/wallet -H "X-Api-Key:
- "
- POST /api/v1/payments
- {"X-Api-Key": ""}{"out": false, "amount": <int>, "memo": <string>,
- "expiry": <int>, "unit": <string>, "webhook":
- <url:string>, "internal": <bool>}
- {"payment_hash": <string>, "payment_request":
- <string>}
- curl -X POST api/v1/payments -d
- '{"out": false, "amount": <int>, "memo": <string>}' -H
- "X-Api-Key:
- " -H
- "Content-type: application/json"
- POST /api/v1/payments (reveal
- admin keys
- )
- {"X-Api-Key": ""}
- {"out": true, "bolt11": <string>}
- {"payment_hash": <string>}
- curl -X POST api/v1/payments -d
- '{"out": true, "bolt11": <string>}' -H "X-Api-Key:
- " -H "Content-type: application/json"
- POST
- /api/v1/payments/decode
- {"data": <string>}
- curl -X POST api/v1/payments/decode -d
- '{"data": <bolt11/lnurl, string>}' -H "Content-type:
- application/json"
- GET
- /api/v1/payments/<payment_hash>
- {"X-Api-Key": ""}
- {"paid": <bool>}
- curl -X GET
- api/v1/payments/<payment_hash> -H
- "X-Api-Key:
- " -H
- "Content-type: application/json"
- WS
- /api/v1/ws/<invoice_key>
-
- wscat -c /
- {"balance": <int>, "payment": <object>}
-