{% extends "base.html" %} {% from "macros.jinja" import window_vars with context %} {% block scripts %} {{ window_vars(user, wallet) }} {% assets filters='rjsmin', output='__bundle__/core/chart.js', 'vendor/chart.js@2.9.3/chart.min.js' %} {% endassets %} {% assets filters='rjsmin', output='__bundle__/core/wallet.js', 'vendor/bolt11/utils.js', 'vendor/bolt11/decoder.js', 'vendor/vue-qrcode@1.0.2/vue-qrcode.min.js', 'core/js/wallet.js' %} {% endassets %} {% endblock %} {% block page %}

{% raw %}{{ w.wallet.fsat }}{% endraw %} sat

Send
Receive
Transactions
Export to CSV Show chart
{% raw %} {% endraw %}
Wallet name: {{ wallet.name }}
Wallet ID: {{ wallet.id }}
Admin key: {{ wallet.adminkey }}
Invoice/read key: {{ wallet.inkey }}
Generate an invoice:
POST /api/v1/invoices
Header {"Grpc-Metadata-macaroon": "{{ wallet.inkey }}"}
Body {"value": "200","memo": "beer"}
Returns {"pay_req": string,"pay_id": string}
*payment will not register in the wallet until the "check invoice" endpoint is used

Check invoice:
Check an invoice:
GET /api/v1/invoice/*payment_hash*
Header {"Grpc-Metadata-macaroon": "{{ wallet.inkey }}"}
Returns {"PAID": "TRUE"}/{"PAID": "FALSE"}
*if using LNTXBOT return will hang until paid

This whole wallet will be deleted, the funds will be UNRECOVERABLE.

This whole wallet will be deleted, the funds will be UNRECOVERABLE.

Delete wallet
Create invoice Cancel
Copy invoice Close
Read invoice Cancel
{% raw %}
{{ send.invoice.fsat }} sat

Memo: {{ send.invoice.description }}
Expire date: {{ send.invoice.expireDate }}
Hash: {{ send.invoice.hash }}

{% endraw %}
Send satoshis Cancel
Not enough funds! Cancel
{% endblock %}