agentsvc.io

services / token-security

financeoperational · 472 ms

Token Risk & Honeypot Check

Token security and honeypot check with risk grade A to F for a token before buying or accepting it, on Solana (SPL and Token-2022) and on Base, Ethereum, BNB Chain, Arbitrum, Polygon, Avalanche or Optimism, computed by us directly on the blockchain. Returns a verdict (low, medium, high, critical, or incomplete if the trade simulation could not run), a one-sentence summary ready to show a user, and concrete flags. EVM: buy and sell simulation in the largest pool, including Uniswap v4 pools with hooks (Clanker, Zora and other launchpads) (honeypot, buy and sell tax), owner powers found in the contract code (mint, blacklist, pause, change tax or limits), upgradeable proxy, SELFDESTRUCT, owner share of supply, burned LP, imitation of major token symbols. Solana: freeze authority (the Solana honeypot pattern), mint authority, permanent delegate, transfer hook, transfer fee, non-transferable, frozen default state, mutable metadata, pump.fun bonding curve, top holder share when available. Both: pool liquidity on the major DEXes, token age and price. Params: token (EVM contract address or Solana mint, required), chain (base default, solana, ethereum, bsc, arbitrum, polygon; a base58 mint is detected as Solana automatically).

Run free trial ↗3 free calls per day with the example input. Paid: $0.009 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/token-security", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"token":"0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed","chain":"base"}),
});
const { data, payment } = await res.json();  // payment.status "settling"; header X-Payment-Settle: sync returns payment.transaction

Input

FieldTypeDescription
token *stringToken contract address (0x..., EVM) or Solana mint address (base58)
chainbase | solana | ethereum | bsc | arbitrum | polygon | avalanche | optimism = "base"

Output

FieldTypeDescription
gradestringA (safest) to F
labelstringSAFE, CAUTION, RISKY, DANGER or UNVERIFIED
scoreinteger0 to 100, higher is safer
chainstring
chain_idinteger,null
tokenstring
verdictstring
risk_flagsarray
noteany
token_infoobject
securityobject,nullDetailed checks. EVM and Solana return different fields; unavailable values are null.
marketobject
sourcesarray
explorerstring
disclaimerstring
checked_atstring
summarystringOne-sentence verdict for humans

Example response (data)

{
  "grade": "D",
  "label": "RISKY",
  "score": 49,
  "chain": "base",
  "chain_id": 8453,
  "token": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
  "verdict": "high",
  "summary": "High risk for DEGEN: Owner can pause transfers; $548,560 DEX liquidity, created 1005 days ago.",
  "risk_flags": [
    {
      "severity": "high",
      "code": "transfer_pausable",
      "detail": "Owner can pause transfers"
    },
    {
      "severity": "info",
      "code": "owner_active",
      "detail": "Owner 0x704ec5c12ca20a293c2c0b72b22619a4231f3c0d has not renounced ownership"
    }
  ],
  "note": null,
  "token_info": {
    "name": "Degen",
    "symbol": "DEGEN",
    "decimals": 18,
    "total_supply_raw": "36043112049073298001086150280",
    "owner": "0x704ec5c12ca20a293c2c0b72b22619a4231f3c0d",
    "owner_renounced": false,
    "bytecode_size": 11608
  },
  "security": {
    "is_honeypot": false,
    "cannot_buy": false,
    "buy_tax": 0,
    "sell_tax": 0,
    "simulation": {
      "ran": true,
      "pool": "0x0ca6485b7e9cf814a3fd09d81672b07323535b64",
      "dex": "uniswap-v3 1%"
    },
    "is_proxy": false,
    "implementation": null,
    "is_mintable": false,
    "blacklist": false,
    "transfer_pausable": true,
    "slippage_modifiable": false,
    "anti_whale_modifiable": false,
    "trading_switch": false,
    "selfdestruct": false,
    "owner_holding_pct": 0.52,
    "burned_supply_pct": 0,
    "lp_burned_pct": 0,
    "holder_count": null,
    "top10_holders_pct": null,
    "trust_list": false,
    "fake_token": false
  },
  "market": {
    "pairs": 16,
    "liquidity_usd": 548560,
    "volume_24h_usd": null,
    "price_usd": 0.0010027750338190767,
    "fdv_usd": 36143133,
    "market_cap_usd": 36143133,
    "first_pair_created": "2024-01-07T15:25:35.000Z",
    "age_days": 1004.7,
    "age_source": "contract deployment",
    "top_pairs": [
      {
        "dex": "uniswap-v3 1%",
        "pair": "0x0ca6485b7e9cf814a3fd09d81672b07323535b64",
        "quote": "WETH",
        "liquidity_usd": 396834,
        "url": "https://basescan.org/address/0x0ca6485b7e9cf814a3fd09d81672b07323535b64"
      },
      {
        "dex": "uniswap-v3 0.3%",
        "pair": "0xc9034c3e7f58003e6ae0c8438e7c8f4598d5acaa",
        "quote": "WETH",
        "liquidity_usd": 98243,
        "url": "https://basescan.org/address/0xc9034c3e7f58003e6ae0c8438e7c8f4598d5acaa"
      },
      {
        "dex": "aerodrome",
        "pair": "0x2c4909355b0c036840819484c3a882a95659abf3",
        "quote": "WETH",
        "liquidity_usd": 32921,
        "url": "https://basescan.org/address/0x2c4909355b0c036840819484c3a882a95659abf3"
      }
    ]
  },
  "sources": [
    "base RPC (contract code, pools, buy and sell simulation)",
    "DefiLlama prices"
  ],
  "explorer": "https://basescan.org/token/0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
  "disclaimer": "Automated risk signals, not financial advice. A low verdict does not guarantee safety.",
  "checked_at": "2026-10-08T07:29:45.789Z"
}