upleb.uk

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

summaryrefslogtreecommitdiff
path: root/main/lnurl_pay.h
blob: 8969e3889a76d4b6e752db553fee8c6914801fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef LNURL_PAY_H
#define LNURL_PAY_H

#include "esp_err.h"
#include <stdint.h>
#include <stddef.h>

#define LNURL_MAX_BOLT11_LEN 2048
#define LNURL_MAX_ADDR_LEN   128

esp_err_t lnurl_get_invoice(const char *lightning_address, uint64_t amount_sats,
                            char *bolt11_out, size_t bolt11_out_size);

#endif