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.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ark.ts b/src/lib/ark.ts
index e223d013..dac5cb2a 100644
--- a/src/lib/ark.ts
+++ b/src/lib/ark.ts
@@ -303,7 +303,7 @@ const _syncTransactions = async (aid: string) => {
const bal = await wallet.getBalance();
const balance = (bal.available || 0) + (bal.preconfirmed || 0);
- const result = await post("/api/ark/sync", { transactions, aid, balance, arkAddress: walletAddr });
+ const result = await post("/ark/sync", { transactions, aid, balance, arkAddress: walletAddr });
cacheVaultSnapshot(); // fire-and-forget
return result;
};
@@ -456,14 +456,14 @@ export const sendArkViaForward = async ({
try {
const txid = await sendArk(serverArkAddress, amount);
- await post("/api/ark/vault-send", { hash: txid, amount, aid });
+ await post("/ark/vault-send", { hash: txid, amount, aid });
const invoice: any = { type: "ark", amount, aid };
if (forward) invoice.forward = forward;
- const inv = await post("/api/invoice", { invoice, user });
+ const inv = await post("/invoice", { invoice, user });
- return await post("/api/ark/receive", { amount, hash: txid, iid: inv.id });
+ return await post("/ark/receive", { amount, hash: txid, iid: inv.id });
} finally {
vaultForwarding = false;
}