Agent402 / tools / asset-transfers

Asset transfers (filtered)

$0.003 per call · USDC via x402 · POST /api/asset-transfers

Filtered transfer log for an EVM address: one direction (in or out), optional counterparty, a category subset (external / internal / erc20 / erc721 / erc1155 / specialnft), an optional contract filter (e.g. only USDC), a block range, and a cursor for paging. One indexed query per call - the cheap way to ask 'every USDC transfer into this wallet' or 'all transfers from A to B' without scanning logs. Values are exact decimal strings scaled by the token's decimals; each row carries the block timestamp.

TRY IN PLAYGROUND →

Input

FieldTypeDescription
addressstring0x-prefixed 40-char EVM address (the wallet or contract whose transfers you want). Optional when `contracts` is set.
directionstringin (transfers TO address) or out (transfers FROM address). Default in.
counterpartystringOptional other party: with direction in, only transfers FROM this address; with out, only transfers TO it.
categoryarraySubset of external, internal, erc20, erc721, erc1155, specialnft. Default external+erc20+erc721+erc1155 (erc20+erc721+erc1155 when `contracts` is set).
contractsarrayOptional token contract filter, up to 10 addresses (token categories only).
fromBlockstringStart block (decimal or 0x hex). Default 0 = genesis.
toBlockstringEnd block (decimal, 0x hex, or latest). Default latest.
maxCountnumberRows per call, 1-100 (default 25).
orderstringdesc (newest first, default) or asc.
includeZeroValuebooleanInclude zero-value transfers (plain contract calls). Default false.
pageKeystringCursor from a previous response to fetch the next page.
networkstringethereum / base / polygon / arbitrum / optimism (default ethereum).

Example output

{
  "network": "ethereum",
  "chainId": 1,
  "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
  "direction": "in",
  "counterparty": null,
  "categories": [
    "erc20"
  ],
  "contracts": [
    "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
  ],
  "fromBlock": "0x0",
  "toBlock": "latest",
  "order": "desc",
  "maxCount": 5,
  "count": 5,
  "transfers": [
    {
      "blockNum": 25563191,
      "timestamp": "2026-07-19T00:32:23.000Z",
      "hash": "0x214b…e56b",
      "from": "0xa916…6081",
      "to": "0xd8da…6045",
      "category": "erc20",
      "asset": "USDC",
      "value": "0.42",
      "contract": "0xa0b8…eb48",
      "rawValue": "420000",
      "decimals": 6,
      "tokenId": null
    }
  ],
  "pageKey": "1f449b0c-…",
  "source": "alchemy",
  "fetchedAt": "2026-08-22T12:00:00.000Z"
}

Try it - see the 402 challenge (free)

curl -i -X POST https://agent402.tools/api/asset-transfers \
  -H "Content-Type: application/json" \
  -d '{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","direction":"in","category":["erc20"],"contracts":["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"],"maxCount":5,"network":"ethereum"}'

The response is HTTP 402 Payment Required with exact payment requirements. Any x402 v2 client pays automatically and retries:

Paid call (JavaScript agent)

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

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/asset-transfers", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "direction": "in",
    "category": [
      "erc20"
    ],
    "contracts": [
      "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
    ],
    "maxCount": 5,
    "network": "ethereum"
  }),
});
Wallet-only. This tool reaches the network/browser/storage, so it is paid in USDC via x402 (no proof-of-work tier).

Related tools

Crypto order book

$0.003 · GET /api/crypto-orderbook

L2 order-book snapshot for a spot pair: best bid/ask, mid price, spread (absolute + %), and the top N aggregated price l…

try in playground →

Stablecoin peg monitor

$0.003 · GET /api/stablecoin-peg

Live $1-peg deviation for the top USD stablecoins (USDT, USDC, USDS, DAI, USDe, PYUSD, USDD, TUSD, FDUSD by default, or …

try in playground →

Wallet balance (native + ERC-20)

$0.002 · POST /api/wallet-balance

Look up the native coin balance (ETH/MATIC) plus every ERC-20 holding for a wallet address on Ethereum, Base, Polygon, A…

try in playground →