agentsvc.io

services / tron-watch

financeoperational · 169 ms

Tron USDT Transfer Watch

Watch a Tron address for USDT and USDC (TRC-20) transfers in a loop: each call returns only transfers since your last call with amount, direction, counterparty, time and link, plus the TRX balance. First call covers the last hour (lookback_hours up to 6) and returns a cursor; pass it back next time. For deposit detection and payment confirmation on Tron.

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/tron-watch", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"address":"TV6MuMXfmLbBqPZvBHdwFsDnQeVfnmiuSi"}),
});
const { data, payment } = await res.json();  // payment.status "settling"; header X-Payment-Settle: sync returns payment.transaction

Input

FieldTypeDescription
address *stringTron address starting with T
cursorstringCursor from the previous call
lookback_hoursnumber = 1First call only, 1 to 6

Output

FieldTypeDescription
changedboolean
new_transfersarray
trx_balancenumber
cursorstring