aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ark.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ark.ts')
-rw-r--r--src/lib/ark.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ark.ts b/src/lib/ark.ts
index 7b289d8a..26c16a93 100644
--- a/src/lib/ark.ts
+++ b/src/lib/ark.ts
@@ -30,6 +30,12 @@ export const getBalance = async (): Promise<{ available: number }> => {
return wallet.getBalance();
};
+export const getVtxos = async () => {
+ const wallet = await getWallet();
+ if (!wallet) return [];
+ return wallet.getVtxos({ spendableOnly: false });
+};
+
export const syncTransactions = async (aid: string) => {
const wallet = await getWallet();
if (!wallet) return;