diff options
| author | Adam Soltys <[email protected]> | 2026-03-04 09:23:03 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-04 09:23:03 -0800 |
| commit | ba579c4f801be258128294e7cb1f4d2e518e37ca (patch) | |
| tree | 2ffbee38d5d82d06580a68ffddd798c1930d6ded /src/lib/ark.ts | |
| parent | e39b182ac4c2134157eca3f4cc7c8c7dfd389484 (diff) | |
| download | coinos-ui-ba579c4f801be258128294e7cb1f4d2e518e37ca.tar.gz coinos-ui-ba579c4f801be258128294e7cb1f4d2e518e37ca.zip | |
fix api calls
Diffstat (limited to 'src/lib/ark.ts')
| -rw-r--r-- | src/lib/ark.ts | 8 |
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; } |
