75trust / 100

Chain Token Safety

by Tanod chainpeek in Onchain & crypto

x402 APIPassing, checked 2 h ago

Use when an agent must decide whether an ERC-20 token on Base or Ethereum is safe to buy or interact with. Input: address, chain. Returns a verdict (high_risk, caution, no_major_flags_found, unknown) with reasons, honeypot simulation, tax and contract flags. Not an audit.

POST https://tanod.dev/v1/chain/token-safety

Last 30 days

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

Uptime
100%
Response time
384 ms typical, 384 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

POST https://tanod.dev/v1/chain/token-safety

Each call costs $0.008 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://tanod.dev/v1/chain/token-safety
content-type: application/json

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

Parameters

ParameterTypeRequiredDescription
addressstringYesERC-20 token contract address (0x + 40 hex).
chainstringNobase (default) or ethereum. One of: base, ethereum. Default: "base".

Example response

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

Example response, 90 lines
{
  "address": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
  "cached": false,
  "chain": "base",
  "checked_at_block": 52521699,
  "contract": {
    "account_type": "contract",
    "deep_scan": {
      "available": false
    },
    "delegatecall": false,
    "implementation": null,
    "is_proxy": false,
    "owner": "0x704ec5c12ca20a293c2c0b72b22619a4231f3c0d",
    "owner_renounced": false,
    "owner_type": "contract",
    "privileges": {
      "blacklist": false,
      "burn_from": true,
      "change_fees": false,
      "mint": false,
      "pause": true,
      "sweep": false
    },
    "proxy_kind": null,
    "risky_functions": {
      "allowance": [
        "approve(address,uint256)",
        "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)"
      ],
      "burn_from": [
        "burnFrom(address,uint256)"
      ],
      "ownership": [
        "renounceOwnership()",
        "transferOwnership(address)"
      ],
      "pause": [
        "pause()",
        "unpause()"
      ]
    },
    "selfdestruct": false,
    "upgrade_admin": null,
    "upgrade_admin_type": null,
    "upgradeable": false,
    "verification": {
      "address": "full",
      "code_that_runs": "full",
      "implementation": null,
      "source": "sourcify"
    }
  },
  "honeypot": {
    "amount_requested_usd": 100,
    "amount_usd": 100,
    "buy_tax_pct": 0,
    "can_buy": true,
    "can_sell": true,
    "detail": "bought and sold back",
    "honeypot": false,
    "liquidity_usd": 400732.35,
    "pool": "0x0cA6485b7e9cF814A3Fd09d81672B07323535b64",
    "quote_asset": "WETH",
    "reason": null,
    "revert": null,
    "round_trip_loss_pct": 1.99,
    "sell_tax_pct": 0,
    "transfer_tax_pct": 0,
    "venue": "uniswap_v3"
  },
  "limits": "Automated and heuristic, not an audit: no_major_flags_found is not proof the token is safe. A snapshot of now: the simulation shows what one fresh contract cou…",
  "reasons": [
    {
      "code": "can_pause",
      "severity": "info",
      "source": "contract_check",
      "text": "The code can be paused: a privileged account can probably stop transfers."
    }
  ],
  "summary": "No major flags found in the honeypot simulation and contract checks (not proof of safety).",
  "token": {
    "decimals": 18,
    "name": "Degen",
    "symbol": "DEGEN",
    "total_supply": "36017792797649604634774633283"
  },
  "untrusted_content": true,
  "verdict": "no_major_flags_found"
}

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.008.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://tanod.dev/v1/chain/token-safety' \
  -H 'content-type: application/json' \
  --data-raw '{"address":"0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed","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://tanod.dev/v1/chain/token-safety' \
  -H 'content-type: application/json' \
  --data-raw '{"address":"0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed","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.008 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.008" });
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.008 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Fchain%2Ftoken-safety&method=POST
const res = await pay("https://tanod.dev/v1/chain/token-safety", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "address": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
    "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.008 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.008"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://tanod.dev/v1/chain/token-safety",
        json={
            "address": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
            "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
2 h agoPassed402384 ms$0.008
6 h agoPassed4021.0 s$0.008
16 h agoPassed402266 ms$0.008