upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/main/lnurl_pay.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/lnurl_pay.h')
-rw-r--r--main/lnurl_pay.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/main/lnurl_pay.h b/main/lnurl_pay.h
new file mode 100644
index 0000000..8969e38
--- /dev/null
+++ b/main/lnurl_pay.h
@@ -0,0 +1,14 @@
1#ifndef LNURL_PAY_H
2#define LNURL_PAY_H
3
4#include "esp_err.h"
5#include <stdint.h>
6#include <stddef.h>
7
8#define LNURL_MAX_BOLT11_LEN 2048
9#define LNURL_MAX_ADDR_LEN 128
10
11esp_err_t lnurl_get_invoice(const char *lightning_address, uint64_t amount_sats,
12 char *bolt11_out, size_t bolt11_out_size);
13
14#endif