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
blob: 64b7c24e3cde7c6af76db58adb28bd8b7c94aff1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef NUCULA_WALLET_H
#define NUCULA_WALLET_H

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

#ifdef __cplusplus
extern "C" {
#endif

esp_err_t nucula_wallet_init(const char *mint_url);

esp_err_t nucula_wallet_receive(const char *token_str);

esp_err_t nucula_wallet_send(uint64_t amount_sat, char *token_out, size_t token_out_size);

uint64_t nucula_wallet_balance(void);

int nucula_wallet_proof_count(void);

char *nucula_wallet_proofs_json(void);

esp_err_t nucula_wallet_swap_all(void);

void nucula_wallet_print_status(void);

#ifdef __cplusplus
}
#endif

#endif