# Check an ERC20 token before you trust it

> Is this token what it claims, what is it worth, and who can still change it under you?

Each call is paid per use in USDC over x402. No API key and no account: call it, get a 402 with the challenge in the `PAYMENT-REQUIRED` header, pay it and repeat the call.

**Every answer in this chain carries a `next` array with the following calls already built** — route, method, the parameters filled in from what was just found, the price and a full url you can fetch as it is. You do not have to work out the next step; follow `next`.

## The calls, starting at `GET /v1/evm/token-info`

The numbering is the usual path, not a fixed order: what you actually get offered depends on what each answer finds. A call is only suggested when the data to make it is there, so a suggestion never sends you into a dead end.

1. **`GET /v1/evm/token-info`** — $0.005 per call. Name, symbol, decimals and total supply, read from the contract rather than from a listing site.
2. **`GET /v1/evm/token-price`** — $0.005 per call. What it is worth right now, from the deepest Uniswap V3 pool against USDC — with the pool address, fee tier, liquidity, sqrtPriceX96, tick and block, so the number can be audited instead of trusted. No aggregator and no API key.
3. **`GET /v1/evm/token-safety`** — $0.01 per call. Proxy and implementation, owner, whether ownership is renounced, whether transfers can be paused — every finding with the call that produced it.
4. **`GET /v1/evm/is-contract`** — $0.005 per call. For a proxy: whether there is real code at the implementation it currently points to.
5. **`GET /v1/evm/nonce`** — $0.005 per call. For an owner that has not renounced: whether it is a multisig contract or a plain wallet, and how active it is.

## Worked example

```
GET https://flat-rate-llm.kikoribera03.workers.dev/v1/evm/token-info?token=0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf&chain=base
```

The answer ends with something like:

```json
{
  "next": [
    {
      "rel": "safety",
      "why": "...",
      "method": "GET",
      "route": "/v1/evm/token-safety",
      "tool": "evm_token_safety",
      "params": {
        "token": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
        "chain": "eip155:8453"
      },
      "url": "https://flat-rate-llm.kikoribera03.workers.dev/v1/evm/token-safety?token=0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf&chain=eip155%3A8453",
      "price": "$0.01"
    }
  ]
}
```

Fetch that `url`, pay its 402, and the answer will carry its own `next`. Follow it until `next` comes back empty.

## Where this chain leads out

- /v1/evm/erc20-balance and /v1/evm/erc20-allowance — once you trust the token, what an address holds of it and what it has approved.

## The same thing over MCP

Every route here is also an MCP tool at `POST https://flat-rate-llm.kikoribera03.workers.dev/mcp` — the `tool` field of each `next` entry is its name, and `params` goes straight into `arguments`. `tools/list` and the `catalog` tool are free.
