upleb.uk

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

summaryrefslogtreecommitdiff
path: root/components/nucula_lib/nucula_wallet.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/nucula_lib/nucula_wallet.h')
-rw-r--r--components/nucula_lib/nucula_wallet.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/components/nucula_lib/nucula_wallet.h b/components/nucula_lib/nucula_wallet.h
new file mode 100644
index 0000000..64b7c24
--- /dev/null
+++ b/components/nucula_lib/nucula_wallet.h
@@ -0,0 +1,31 @@
1#ifndef NUCULA_WALLET_H
2#define NUCULA_WALLET_H
3
4#include "esp_err.h"
5#include <stdint.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11esp_err_t nucula_wallet_init(const char *mint_url);
12
13esp_err_t nucula_wallet_receive(const char *token_str);
14
15esp_err_t nucula_wallet_send(uint64_t amount_sat, char *token_out, size_t token_out_size);
16
17uint64_t nucula_wallet_balance(void);
18
19int nucula_wallet_proof_count(void);
20
21char *nucula_wallet_proofs_json(void);
22
23esp_err_t nucula_wallet_swap_all(void);
24
25void nucula_wallet_print_status(void);
26
27#ifdef __cplusplus
28}
29#endif
30
31#endif