aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ark.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ark.ts b/src/lib/ark.ts
index 05a3963d..b1098ee3 100644
--- a/src/lib/ark.ts
+++ b/src/lib/ark.ts
@@ -44,6 +44,13 @@ export const syncTransactions = async (aid: string) => {
return post("/ark/sync", { transactions, aid });
};
+export const sendArk = async (address: string, amount: number) => {
+ const wallet = await getWallet();
+ if (!wallet) throw new Error("Ark wallet not available");
+
+ return wallet.sendBitcoin({ address, amount });
+};
+
export const settle = async () => {
const wallet = await getWallet();
if (!wallet) return;