From 8fe9864e43d3d698059aa57825be74b386f1ba06 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Fri, 3 Apr 2020 12:57:36 +0100 Subject: [PATCH] Update wallet.html Changed value to amount, added a curl example --- lnbits/core/templates/core/wallet.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lnbits/core/templates/core/wallet.html b/lnbits/core/templates/core/wallet.html index bde0bc5..7171267 100644 --- a/lnbits/core/templates/core/wallet.html +++ b/lnbits/core/templates/core/wallet.html @@ -127,14 +127,13 @@ POST /api/v1/payments
Headers
- {"Grpc-Metadata-macaroon": "{{ wallet.inkey }}"}
+ {"Grpc-Metadata-macaroon": "{{ wallet.inkey }}"}
Body (application/json)
- {"out": false, "value": <int>, "memo": <string>} + {"out": false, "amount": <int>, "memo": <string>}
Returns 201 CREATED (application/json)
{"checking_id": <string>, "payment_request": <string>} +
Curl example
+ curl -X POST http://127.0.0.1:5000/api/v1/payments -d '{"out": false, "amount": <int>, "memo": <string>}' -H "Grpc-Metadata-macaroon: {{ wallet.inkey }}" -H "Content-type: application/json"