Skip to content

Commit

Permalink
Temp 19: Add Balance type
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderbiscuit committed Oct 11, 2023
1 parent be982c7 commit 84d6ea7
Show file tree
Hide file tree
Showing 4 changed files with 298 additions and 248 deletions.
16 changes: 16 additions & 0 deletions bdk-ffi/src/bdk.udl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ interface Wallet {
constructor(Descriptor descriptor, Descriptor? change_descriptor, Network network, WalletType wallet_type);

AddressInfo get_address(AddressIndex address_index);

Balance get_balance();
};

enum WalletType {
Expand All @@ -163,3 +165,17 @@ interface AddressIndex {
LastUnused();
Peek(u32 index);
};

interface Balance {
u64 immature();

u64 trusted_pending();

u64 untrusted_pending();

u64 confirmed();

u64 trusted_spendable();

u64 total();
};
Loading

0 comments on commit 84d6ea7

Please sign in to comment.