# GET /token/safety: $0.02 per call

Rug-pull and scam check for any token on Base, Solana, Ethereum, BNB, Arbitrum, Polygon, Optimism or Avalanche. Checks honeypot, buy/sell tax, mint/freeze authority, hidden owner, proxy, blacklist, holder concentration, locked liquidity, pool age and market data, then gives flags, a 0-100 safety score and a verdict. Pass ?address=...&chain=base.

- **Price:** $0.02 in USDC, the same on Base, Solana, Polygon, Arbitrum. Failed calls are never charged.
- **Free trial:** yes, 20 free calls a day from Claude, Cursor or any MCP client ([set-up](/mcp/setup)).
- **Answers cached for:** 10 min
- **Data sources:** GoPlus Security (free tier); honeypot.is / RugCheck (free, fallback); DexScreener (free); GeckoTerminal (free, fallback); DefiLlama prices (free, fallback)
- **Lane:** Crypto & on-chain ([OpenAPI](/openapi/crypto.json))
- **Live health:** [status page](/status)

## Free sample

See an answer for the demo input first, free (no payment, 10 a minute): [https://aayatai.com/sample/token-safety](/sample/token-safety). It is a stored real answer when we have one, otherwise an example marked `"kind": "illustrative"`.

```bash
curl "https://aayatai.com/sample/token-safety"
```

## 1. See the price (free)

Call it without paying: you get `402 Payment Required` and a `PAYMENT-REQUIRED` header with the exact price and where to pay.

```bash
curl -i "https://aayatai.com/token/safety?address=0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed&chain=base"
```

## 2. Pay and call (TypeScript)

```bash
npm install @x402/fetch @x402/evm viem
```

```ts
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

// A wallet used only by your agent, holding a little USDC on Base.
const account = privateKeyToAccount(process.env.WALLET_PRIVATE_KEY as `0x${string}`);
const pay = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});

const res = await pay("https://aayatai.com/token/safety?address=0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed&chain=base");
console.log(await res.json());
```

## 3. Or as an MCP tool

```ts
// MCP server: https://aayatai.com/mcp (Streamable HTTP). With the x402 MCP client (see /start):
const result = await client.callTool("token-safety", {"address":"0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed","chain":"base"});
```

## Inputs

- `address` **(required)** (string): Token contract address (0x...) or Solana mint address.
- `chain` (string; one of `base`, `solana`, `ethereum`, `bsc`, `arbitrum`, `polygon`, `optimism`, `avalanche`; default `base`): Blockchain: base, solana, ethereum, bsc, arbitrum, polygon, optimism, avalanche.

Bad inputs are rejected with HTTP 400 before any payment is asked for.

## Example answer

```json
{
  "address": "0x1111111111111111111111111111111111111111",
  "chain": "base",
  "verdict": "low-risk",
  "verdictReason": "All checks ran.",
  "score": 90,
  "dataComplete": true,
  "checksNotRun": [],
  "flags": [
    {
      "level": "warning",
      "code": "owner_holds",
      "message": "Owner holds 8.2% of supply."
    }
  ],
  "contract": {
    "token_name": "Example Token",
    "token_symbol": "EXMPL",
    "is_open_source": "1",
    "is_honeypot": "0",
    "buy_tax": "0",
    "sell_tax": "0"
  },
  "holders": {
    "count": 812345,
    "top10Percent": 31.2,
    "top": [
      {
        "address": "0x...",
        "percent": 8.2,
        "isContract": false,
        "isLocked": false,
        "tag": null
      }
    ]
  },
  "liquidity": {
    "lockedPercent": 97.5,
    "lpHolders": 120
  },
  "market": {
    "name": "Example Token",
    "symbol": "EXMPL",
    "priceUsd": 0.0031,
    "priceNative": 0.0000012,
    "liquidityUsd": 4210000,
    "volume24hUsd": 812000,
    "priceChange": {
      "m5": 0.1,
      "h1": -0.4,
      "h6": 2.1,
      "h24": -3.5
    },
    "txns24h": {
      "buys": 2311,
      "sells": 2104
    },
    "marketCapUsd": 115000000,
    "fdvUsd": 115000000,
    "pairs": 30,
    "topPair": null,
    "oldestPairCreatedAt": "2024-01-15T10:00:00.000Z",
    "links": {
      "websites": [],
      "socials": [],
      "image": null
    },
    "marketSource": "DexScreener",
    "liquidityKnown": true
  },
  "sources": [
    "GoPlus Security",
    "DexScreener"
  ],
  "disclaimer": "Automated heuristics, not financial advice.",
  "checkedAt": "2026-09-28T12:00:00.000Z"
}
```

## Related

- [GET /token/price](/services/token-price) ($0.005): Live price of any token on Base, Solana, Ethereum, BNB, Arbitrum, Polygon, Optimism or Avalanche from DEX data: USD price, total liquidity, 24h volume, buys/sel
- [GET /token/report/cached](/services/token-report-cached) ($0.05): Full token report, cached tier (answers up to 15 minutes old, half price): safety (honeypot, taxes, owner powers), holders (concentration, exchange/fund/locked 
- [GET /token/report](/services/token-report) ($0.10): Full token report, live: safety (honeypot, taxes, owner powers), holders (concentration, exchange/fund/locked share), liquidity (depth, locks, pools), price act
- [GET /token/report/deep](/services/token-report-deep) ($0.25): Deep token report: everything in /token/report (safety (honeypot, taxes, owner powers), holders (concentration, exchange/fund/locked share), liquidity (depth, l
- [GET /token/new](/services/token-new) ($0.01): New token launches with real liquidity: tokens whose first DEX pool opened in the last hour (up to 24h) with at least $10k liquidity (adjustable), newest first,
- [GET /token/whales](/services/token-whales) ($0.02): Whale and exchange flows for a token on Base, Ethereum, Arbitrum, Optimism or Polygon, from its latest ~250 transfers: large transfers, deposits/withdrawals per
- [GET /wallet](/services/wallet) ($0.01): Wallet profile on Base, Ethereum or Solana: native balance, token holdings with USD values (top 25), total portfolio value, whether it is a contract, ENS name, 
- [GET /wallet/deep](/services/wallet-deep) ($0.03): Deep wallet report on Base, Ethereum or Solana: everything in /wallet (balances, tokens, USD value) plus recent transactions and token transfers, in/out directi

New here? [Getting started in 60 seconds](/start). All services: [Aayat AI](/).