agentsvc.io

services / erc20-transfers

financeoperational · 828 ms

ERC-20 Transfer History

Recent Transfer events of an ERC-20 token (newest first, up to 50): tx, time, from, to, amount in token units. Optional holder filters to transfers from or to one wallet. Reads up to the last 12000 blocks (fewer on very busy tokens) via RPC, so it is cheap but not a full history; the response says what range was searched. Use for quick wallet or token activity checks.

Run free trial ↗3 free calls per day with the example input. Paid: $0.004 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/erc20-transfers", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","chain":"base","limit":5}),
});
const { data, payment } = await res.json();  // payment.status "settling"; header X-Payment-Settle: sync returns payment.transaction

Input

FieldTypeDescription
token *stringToken contract address (0x...)
chainstringbase (default), ethereum, bsc, arbitrum, polygon, avalanche or optimism
holderstringOptional wallet address to filter by
limitnumber = 201 to 50

Output

FieldTypeDescription
transfersarray
countnumber
from_blocknumber
to_blocknumber