71trust / 100

Token Safety Check

by Is This Token Safe? in Onchain & crypto

x402 APIFailing, checked 4 h ago

Checks whether an ERC-20 token is safe to buy, hold or sell: honeypot, rug pull and scam risk. Input: chain and token address. Output: a verdict (OK, CAUTION, AVOID or UNVERIFIED), a short summary and each risk with its evidence. Not just code flags: it simulates a buy and a sale through OpenSea's swap, sales from real holders' wallets, sales up to a year after buying, and a holder's sale after each owner power (tax, blacklist, mint) is used. Shows who can pull the liquidity. 18 EVM chains.

POST https://tokensafetycheck.xyz/api/token-safety-check

Last 30 days

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

Uptime
80.0%
Response time
331 ms typical, 464 ms slowest 5%
Last check
4 h ago: Expected HTTP 402, got 502
Next check
any minute now

How to call it

POST https://tokensafetycheck.xyz/api/token-safety-check

Each call costs $0.05 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://tokensafetycheck.xyz/api/token-safety-check
content-type: application/json

{
  "address": "0x10c56f005a379f8eafc88ff5c3f40d30f0031ac9",
  "chain": "base"
}

Parameters

ParameterTypeRequiredDescription
addressstringYesToken contract address (ERC-20) on that chain.
amount_usdnumberNoSize of the planned trade in USD, tested as given. Not given: $100, or 2% of the pool's depth when that is less (at least $10; $50 when the depth is unknown), so price impact stays small. With wallet + sell: the part of your balance to sell (default: all of it).
chainstringYesOpenSea chain identifier of the token, as returned by OpenSea get_tokens / get_chains (e.g. "base", "ethereum", "robinhood"). EVM chains only. One of: ethereum, base, arbitrum, optimism, polygon, avalanche, sei, ape_chain, flow, soneium, bera_chain, unichain.
detailstringNostandard (default, under 9 KB): decision, reasons and key facts. full: also every raw measurement under `evidence` (9–36 KB; some agent shells keep only ~10 KB of output). One of: standard, full.
intentstringNoWhat you came for. The check and the verdict are the same for every intent; the summary answers yours first. check (default): is this token safe to deal with. buy: can I buy and get out later, what can the owner do once I hold it. hold: can I (your wallet) sell now, what changed, what threatens hol… One of: check, buy, hold, sell.
walletstringNoYour wallet address (hold / sell): its real balance is sold in simulation, which catches a blacklist on that address. Nothing is signed or sent.

Example response

The provider's example. We can't check it without paying.

Example response, 83 lines
{
  "costs": {
    "buy": {
      "fees_and_taxes_pct": 1.29,
      "hook_fee_pct": null,
      "pool_fee_pct": 0.3,
      "price_impact_pct": 0.18,
      "token_tax_pct": 0.99
    },
    "round_trip_usd": 97.44,
    "sell": {
      "fees_and_taxes_pct": 1.29,
      "hook_fee_pct": null,
      "pool_fee_pct": 0.3,
      "price_impact_pct": 0.16,
      "token_tax_pct": 0.99
    },
    "tested_usd": 100,
    "transfer_tax_pct": 0
  },
  "owner": {
    "address": "0xe220329659d41b2a9f26e83816b424bdacf62567",
    "control": "wallet",
    "proven_powers": [
      {
        "effect": "after addBlacklistAddress(0x93e7...075b), the holder's sale reverts: TransferToBlacklistedAddress() (0x93e7...075b is the pool the holder sells into)",
        "function": "addBlacklistAddress(address)",
        "power": "block_sale"
      },
      {
        "effect": "after setProjectTaxRates(9900, 9900), the holder's sale returns 1.0% of what it returns otherwise",
        "function": "setProjectTaxRates(uint16,uint16)",
        "power": "raise_tax"
      }
    ]
  },
  "risk_level": "high",
  "risks": [
    {
      "code": "OWNER_CAN_BLOCK_SALE",
      "detail": "after addBlacklistAddress(0x93e7...075b), the holder's sale reverts: TransferToBlacklistedAddress() (0x93e7...075b is the pool the holder sells into).",
      "evidence": "proven",
      "level": "high",
      "message": "A single wallet 0xe220...2567 can at any time block holders from selling (addBlacklistAddress(address))"
    },
    {
      "code": "OWNER_CAN_RAISE_TAX",
      "detail": "after setProjectTaxRates(9900, 9900), the holder's sale returns 1.0% of what it returns otherwise.",
      "evidence": "proven",
      "level": "high",
      "message": "A single wallet 0xe220...2567 can at any time cut what holders get for a sale to 1% (setProjectTaxRates(uint16,uint16))"
    }
  ],
  "sell": {
    "can_sell": true,
    "is_honeypot": false,
    "real_holders": {
      "blocked": 0,
      "highest_tax_pct": 0.99,
      "sold": 14,
      "tested": 14
    },
    "recommended_slippage_pct": 0.5,
    "sells_later": {
      "after_1d": true,
      "after_1h": true,
      "after_1y": true,
      "after_30d": true,
      "after_7d": true,
      "next_block": true
    },
    "via_opensea": {
      "gas_usd": 0.01,
      "provider": "ZERO_EX",
      "received_usd": 98.15,
      "result": "sold",
      "tested_usd": 100
    }
  },
  "summary": "Sells in simulation. No trap found. Risks: A single wallet 0xe220...2567 can at any time block holders from selling (addBlacklistAddress(address)) [high]; A single wallet 0xe220...2567 can at any time cut what holders get for a sale to 1% (setProjectTaxRates(uint16,uint16)) [high] (+2 more, see risks). Checked as it is now; of its 176 days, the events of the last 30 were read.",
  "traps": [],
  "verdict": "CAUTION"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.05.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://tokensafetycheck.xyz/api/token-safety-check' \
  -H 'content-type: application/json' \
  --data-raw '{"address":"0x10c56f005a379f8eafc88ff5c3f40d30f0031ac9","chain":"base"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://tokensafetycheck.xyz/api/token-safety-check' \
  -H 'content-type: application/json' \
  --data-raw '{"address":"0x10c56f005a379f8eafc88ff5c3f40d30f0031ac9","chain":"base"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.05 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.05" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.05 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftokensafetycheck.xyz%2Fapi%2Ftoken-safety-check&method=POST
const res = await pay("https://tokensafetycheck.xyz/api/token-safety-check", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "address": "0x10c56f005a379f8eafc88ff5c3f40d30f0031ac9",
    "chain": "base"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.05 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.05"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://tokensafetycheck.xyz/api/token-safety-check",
        json={
            "address": "0x10c56f005a379f8eafc88ff5c3f40d30f0031ac9",
            "chain": "base",
        },
    )
    print(res.status_code, res.text)

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoExpected HTTP 402, got 502502340 ms-
9 h agoExpected HTTP 402, got 502502287 ms-
12 h agoExpected HTTP 402, got 502502257 ms-
16 h agoExpected HTTP 402, got 502502290 ms-
20 h agoPassed402334 ms$0.05
24 h agoPassed402359 ms$0.05
28 h agoPassed402385 ms$0.05
31 h agoPassed402309 ms$0.05
35 h agoPassed402362 ms$0.05
39 h agoPassed402312 ms$0.05
42 h agoPassed402309 ms$0.05
46 h agoPassed402320 ms$0.05
2 days agoPassed402464 ms$0.05
2 days agoPassed402303 ms$0.05
2 days agoPassed402481 ms$0.05