Browse Source
Update wallet.html
Changed value to amount, added a curl example
fee_issues
Arc
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
5 deletions
-
lnbits/core/templates/core/wallet.html
|
@ -127,14 +127,13 @@ |
|
|
<q-card-section> |
|
|
<q-card-section> |
|
|
<code><span class="text-light-green">POST</span> /api/v1/payments</code> |
|
|
<code><span class="text-light-green">POST</span> /api/v1/payments</code> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Headers</h5> |
|
|
<code |
|
|
<code>{"Grpc-Metadata-macaroon": "<i>{{ wallet.inkey }}</i>"}</code><br /> |
|
|
>{"Grpc-Metadata-macaroon": "<i>{{ wallet.inkey }}</i |
|
|
|
|
|
>"}</code |
|
|
|
|
|
><br /> |
|
|
|
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Body (application/json)</h5> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Body (application/json)</h5> |
|
|
<code>{"out": false, "value": <int>, "memo": <string>}</code> |
|
|
<code>{"out": false, "amount": <int>, "memo": <string>}</code> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Returns 201 CREATED (application/json)</h5> |
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Returns 201 CREATED (application/json)</h5> |
|
|
<code>{"checking_id": <string>, "payment_request": <string>}</code> |
|
|
<code>{"checking_id": <string>, "payment_request": <string>}</code> |
|
|
|
|
|
<h5 class="text-caption q-mt-sm q-mb-none">Curl example</h5> |
|
|
|
|
|
<code>curl -X POST http://127.0.0.1:5000/api/v1/payments -d '{"out": false, "amount": <int>, "memo": <string>}' -H "Grpc-Metadata-macaroon: <i>{{ wallet.inkey }}</i>" -H "Content-type: application/json"</code> |
|
|
</q-card-section> |
|
|
</q-card-section> |
|
|
</q-card> |
|
|
</q-card> |
|
|
</q-expansion-item> |
|
|
</q-expansion-item> |
|
|