---
name: blockchainanalysis-token-safety
description: >-
  Check an ERC-20 token for honeypots, extreme transfer taxes, name/symbol
  impersonation, and active mint authority BEFORE your agent buys, swaps into,
  or approves it — plus audit a wallet's existing token approvals for risky
  spenders. Uses the free BlockchainAnalysis MCP token tools. Trigger before
  any buy/swap/approve of a token you have not vetted.
---

# BlockchainAnalysis token safety

Before your agent buys, swaps into, or approves an ERC-20 it has not vetted,
check the token contract. This catches the traps that drain a wallet on the
*next* action, not the current one:

- **Honeypots** — you can buy but the sell reverts; funds are stuck.
- **Extreme transfer taxes** — a large cut is taken on buy/sell.
- **Name / symbol impersonation** — a fake "USDC" or "WETH".
- **Active mint authority** — supply can be inflated after you buy.

## Setup (one time)

```
claude mcp add --transport http blockchainanalysis https://blockchainanalysis.io/api/mcp
```

Any Agent Skills / MCP-compatible tool (Codex, Cursor, Gemini CLI, …) can use the
same endpoint: `https://blockchainanalysis.io/api/mcp`. These tools are FREE — no
account, no API key, no payment.

## When to run

- Before buying or swapping into an ERC-20 you have not vetted.
- Before signing an approval for a token contract.
- Whenever a user asks "is this token safe / is this a honeypot?".

## The checks

1. **`check_token_security`** `{ token, chain }` — FREE. Simulates a buy-and-sell
   on the token's main DEXes (no transaction sent) and reports observed facts:
   honeypot, transfer tax, name/symbol impersonation, active mint authority,
   cross-referenced against 1B+ entity labels. Supported chains: `BASE`, `BSC`,
   `ETH`, `OPTIMISM`, `POLYGON`, `ARBITRUM`.
   - Sell simulation reverted → **honeypot, do not buy.**
   - Extreme tax / active mint authority → surface to a human before proceeding.

2. **`check_token_approvals`** `{ wallet }` — FREE, Ethereum only. Lists a wallet's
   active ERC-20 approvals and who can move its funds, risk-scored against entity
   labels (scam / phishing / exploit / sanctioned spenders), flagging unlimited
   allowances and stale grants. Run it to audit the wallet you are about to
   transact from, and revoke risky approvals first.

## Interpreting results

- These tools report **observed facts** (e.g. "sell simulation reverted"), not a
  verdict. Treat a reverted sell or an impersonated name as a hard stop.
- A clean result is not a guarantee the token is a good investment — it only means
  the specific traps above were not detected at check time.

## Related

For screening the *counterparty wallet* (sanctions / AML / stablecoin freeze)
before moving funds, use the `blockchainanalysis-compliance-gate` skill.
