Asset transfers (filtered)
POST /api/asset-transfersFiltered 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.
Input
| Field | Type | Description |
|---|---|---|
address | string | 0x-prefixed 40-char EVM address (the wallet or contract whose transfers you want). Optional when `contracts` is set. |
direction | string | in (transfers TO address) or out (transfers FROM address). Default in. |
counterparty | string | Optional other party: with direction in, only transfers FROM this address; with out, only transfers TO it. |
category | array | Subset of external, internal, erc20, erc721, erc1155, specialnft. Default external+erc20+erc721+erc1155 (erc20+erc721+erc1155 when `contracts` is set). |
contracts | array | Optional token contract filter, up to 10 addresses (token categories only). |
fromBlock | string | Start block (decimal or 0x hex). Default 0 = genesis. |
toBlock | string | End block (decimal, 0x hex, or latest). Default latest. |
maxCount | number | Rows per call, 1-100 (default 25). |
order | string | desc (newest first, default) or asc. |
includeZeroValue | boolean | Include zero-value transfers (plain contract calls). Default false. |
pageKey | string | Cursor from a previous response to fetch the next page. |
network | string | ethereum / 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"
}),
});
Related tools
Crypto order book
GET /api/crypto-orderbookL2 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
GET /api/stablecoin-pegLive $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)
POST /api/wallet-balanceLook up the native coin balance (ETH/MATIC) plus every ERC-20 holding for a wallet address on Ethereum, Base, Polygon, A…
try in playground →