Address poisoning check API: is the recipient a lookalike from your agent's own history?

Updated 2026-11-11

Use when an agent is about to send USDC or a token and must check the recipient is not an address-poisoning lookalike.

Before your agent sends a token, ask whether the recipient was planted. POST https://tanod.dev/v1/chain/address-poisoning takes the chain, the sending wallet (from) and the recipient (to). It reads the sender's transfers of one token (USDC by default) over the last 24 hours by default, in and out, and looks for addresses that share the recipient's first 4 and last 4 hex characters. On Base the public nodes serve only about the latest 27 minutes of that day, and the answer says what it read. The answer is risk high, medium or low, with the reasons and the transactions behind them. It costs USD 0.002 per call, paid in USDC on Base, Polygon, Solana, BNB Chain or Arbitrum through x402. The first 10 chain reads per IP per UTC day are free with the header X-Tanod-Free: 1, in one pool shared with the other chainpeek reads. It is also the MCP tool check_address_poisoning at https://tanod.dev/mcp and on the focused server https://tanod.dev/mcp/security, where the free allowance is applied automatically.

The attack it looks for

Right after a wallet pays an address, an attacker makes a lookalike of that address show up in the wallet's history. The usual move is a zero-value transferFrom(victim, lookalike, 0): USDC lets anyone move 0 tokens from any wallet, so the transfer needs no permission and costs the attacker only gas. A variant sends the victim a sub-cent amount from the lookalike. Many wallets shorten addresses to the first and last few characters, so the lookalike reads like the real one. Anyone, or any agent, that copies the recipient from the history later can pick the wrong one. On 2026-10-13 a post on Moltbook counted 3,979 zero-value USDC transfers to 3,528 wallets in one 600-block window on Base, about 20 minutes.

What wallets and explorers already warn about

Since 2026-06-17 the MetaMask Extension and Mobile apps compare each address you paste with the addresses you have interacted with, on all EVM networks (MetaMask's announcement). A lookalike, with the same first and last characters and a different middle, gets a blocking warning; an address you have never interacted with gets a first-time send warning. Since 2026-03-10 Trust Wallet checks each address you enter or paste in its send flow against a database of known scam and lookalike addresses, on 32 EVM chains at launch, including Base. A high-severity match gets a blocking warning before you can send, with the flagged address next to the real one it mimics; you can still go ahead after seeing it (Trust Wallet's announcement). Etherscan's Ethereum explorer has a Lookalike Address Warning, on by default in its site settings (checked 2026-11-10): it flags addresses on the same page that share similar starting or ending characters and warns before you copy one. TokenPost reported it as a beta announced on 2026-10-23.

Where those warnings never appear

A payout job, a treasury script, an x402 client or an agent that builds and signs a transfer itself has no wallet screen or explorer page in the loop. This check is for those senders: call it with from and to before signing and act on risk (what to do with each risk).

Request

Example

This pair comes from our test fixtures, with made-up addresses. The agent paid 0x7a25…c4d3 25 USDC on Base. Two blocks later a zero-value transfer from the agent's wallet planted 0x7A25…C4d3, a different address with the same first and last 4 characters. The agent is about to pay the second one. A live call with these addresses returns low, since they have no history on Base.

curl -s -X POST https://tanod.dev/v1/chain/address-poisoning \
  -H "Content-Type: application/json" -H "X-Tanod-Free: 1" \
  -d '{"chain": "base", "from": "0x5A0b54D5dc17e0AadC383d2db43B0a0D3E029c4c", "to": "0x7A25e8814F0C6D3B2a9e7f15C08D64B2A91EC4d3"}'

The answer, trimmed (the rules and limits fields and some counters are left out):

{
  "chain": "base", "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "token_symbol": "USDC",
  "risk": "high",
  "reasons": [
    {"code": "to_mimics_paid_address", "severity": "high",
     "message": "`to` shares the first 4 and last 4 hex characters with 0x7a2510c3E9b8f4d61E0A5b97c2F43d8e1F6Bc4D3, which `from` paid in the lookback, and `from` never paid `to` itself: the shape of an address-poisoning lookalike.",
     "evidence": {"paid_address": "0x7a2510c3E9b8f4d61E0A5b97c2F43d8e1F6Bc4D3",
                  "paid_transfers": [{"tx_hash": "0xcc24197b89d9fe816555422c5d16724022a44cced46666edb41a789b8ae3d47d",
                                      "block": 52511207, "direction": "out", "amount": "25", "kind": "value"}]}},
    {"code": "to_only_in_zero_or_dust", "severity": "high",
     "message": "`to` appears in the history only in zero-value or dust transfers, which anyone can make to plant an address: `from` never paid it and it never sent `from` a real amount.",
     "evidence": {"zero_value": 1, "dust": 0,
                  "transfers": [{"tx_hash": "0xa2cdb9f9b3931409e58f5c751db37b918a38bd4cf4d9da11d6573ccb290316ad",
                                 "block": 52511209, "direction": "out", "amount": "0", "kind": "zero"}]}},
    {"code": "history_partial", "severity": "info",
     "message": "Read less than lookback_s; `history` has the window read.", "evidence": {}}],
  "to_history": {"seen": true, "paid": false, "payments": 0, "zero_value": 1, "dust": 0},
  "matches": [{"address": "0x7a2510c3E9b8f4d61E0A5b97c2F43d8e1F6Bc4D3", "prefix_match": 4, "suffix_match": 4,
               "paid_by_from": true, "transfers_total": 1}],
  "history": {"read": true, "from_block": 52504001, "from_time": "2026-11-10T01:18:29Z", "to_block": 52512000, "to_time": "2026-11-10T01:45:09Z",
              "seconds": 1600, "complete": false, "stopped": "chunk_cap", "requested_s": 86400, "blocks": 8000,
              "transfers": 2, "zero_value": 1, "dust": 0},
  "dust_threshold": "0.01"
}

Called with to set to the address the agent really paid, the same history gives medium: lookalike_of_to_in_history (someone is imitating that address) and to_paid_before.

The rules

A lookalike is a different address with the same first 4 and last 4 hex characters (case ignored). An address is paid when from sent it a non-zero amount of the token: only the wallet, or a spender it approved, can move a non-zero amount out of it, so this cannot be planted. An x402 payment of USD 0.001 counts. A zero-value transfer is a transfer of 0 in either direction. Dust is an incoming transfer below the dust threshold.

Every reason has a code, a severity (high, medium, info or ok), a message and its evidence: transaction hash, block, amount and direction. matches lists up to 20 lookalike addresses with their transfers; to_history says whether to was paid before and how often it appears in zero-value or dust transfers. An info reason, history_poisoned, reports lookalikes of the wallet's other payees, which tells you the wallet is being targeted, and never changes the risk.

What to do with each risk

Watch the reserve between payments

A recipient check answers a different question from a reserve alert. Use hot wallet balance alerts: floor and ceiling to watch for too little or too much in Tanod Monitor. It is free and read-only, with checks every 5 minutes or longer; it does not approve a recipient, move funds or stop a payer for you. The guide includes a synthetic, offline-only spending-pause example and explains why unsigned webhook messages are not spending authority.

How far back is enough?

No short history window catches an old poisoning. A seller of a similar check measured this on Base and posted it on Moltbook: with poison about a day old, a 9 to 10 hour window flagged 3 of 13 real cases as high, and missed the other 10. Our default window asks for 24 hours, but on Base the public nodes we read serve only about the latest 27 minutes of logs (8,000 blocks at 0.2 s per block), so on old poison it would do no better. history.from_time and history.seconds say how far back each answer read.

The window is for poison that is fresh, which is when it is most likely to be copied: the lookalike shows up next to the real transfer. For older poison, pass the addresses you actually pay in contacts. That comparison has no window: a to that is not a contact but shares its first and last 4 characters with one is flagged, however long ago the lookalike arrived. An agent that pays a fixed set of payees can send contacts only with lookback_blocks: 0; that call reads nothing from the chain.

Limits

Price and free allowance

USD 0.002 per call in USDC through x402. The first 10 chain reads per IP per UTC day are free with X-Tanod-Free: 1 (automatic over MCP), shared with the other chainpeek reads. Without payment or the free header the answer is 402 Payment Required with the price. For comparison, 19 paid x402 offers that check an address for poisoning or lookalikes, hand-reviewed from the Tanod agent index on 13 October 2026, list a median of USD 0.02 per call and a low of USD 0.001 (see what address poisoning checks cost).

Use it from Claude without writing code: in claude.ai or Claude Desktop, add https://tanod.dev/mcp/security?via=address-poisoning-check-api as a custom connector (steps), then ask in plain words, for example "Before I send USDC to 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045, check it is not an address-poisoning lookalike." The free daily allowance is applied automatically over MCP. Beyond it a call needs an x402 payment, which these clients can make.

Related guides: what address poisoning checks cost over x402, ERC-20 transfer history API (the same read, as a list), contract address risk check, OFAC address screening, security MCP server. Updated 2026-11-11. All guides, or back to tanod.dev. Results are automated.