agentsvc.io

services / sui-watch

dataoperational · 142 ms

Sui Wallet Watch

Watch a Sui address or SuiNS name in a loop and get only new transactions since your last call, with direction, SUI change, status and link, plus the balance. Pass the returned cursor on the next call.

Run free trial ↗3 free calls per day with the example input. Paid: $0.002 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/sui-watch", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"address":"0x00ae78d3e5ba5d6b8de32455474f52811b95617cbad39ebf4f9e2daf67187407","limit":2}),
});
const { data, payment } = await res.json();  // payment.status "settling"; header X-Payment-Settle: sync returns payment.transaction

Input

FieldTypeDescription
address *stringSui address or SuiNS name
cursorstringCursor from the previous call
limitinteger = 20

Output

FieldTypeDescription
changedboolean
new_transactionsarray
sui_balancenumber
cursorstring