Skip to content
Finance
Skill

/query-token-audit

Query token security audit to detect scams, honeypots, and malicious contracts before trading. Returns comprehensive security analysis including contract risks, trading risks, and scam detection. Use when users ask "is this token safe?", "check token security", "audit token", or

From plugin
binance-skills-hub
1.2k21 skills

Claude Code

$ npx -y skills add binance/binance-skills-hub --skill query-token-audit --agent claude-code

SKILL.md

query-token-audit.SKILL.md
name: query-token-audit
description: |
  Query token security audit to detect scams, honeypots, and malicious contracts before trading.
  Returns comprehensive security analysis including contract risks, trading risks, and scam detection.
  Use when users ask "is this token safe?", "check token security", "audit token", or before any swap.
metadata:
  author: binance-web3-team
  version: "1.4"

Query Token Audit Skill

Overview

| API | Function | Use Case | |-----|---------------------|----------| | Token Security Audit | Token security scan | Detect honeypot, rug pull, scam, malicious functions |

Use Cases

1. **Pre-Trade Safety Check**: Verify token security before buying or swapping 2. **Scam Detection**: Identify honeypots, fake tokens, and malicious contracts 3. **Contract Analysis**: Check for dangerous ownership functions and hidden risks 4. **Tax Verification**: Detect unusual buy/sell taxes before trading

Supported Chains

| Chain Name | chainId | |------------|---------| | BSC | 56 | | Base | 8453 | | Solana | CT_501 | | Ethereum | 1 |

---

API: Token Security Audit

Method: POST

**URL**:

https://web3.binance.com/bapi/defi/v1/public/wallet-direct/security/token/audit

**Request Parameters**:

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | binanceChainId | string | Yes | Chain ID: `CT_501` (Solana), `56` (BSC), `8453` (Base), `1` (Ethereum) | | contractAddress | string | Yes | Token contract address | | requestId | string | Yes | Unique request ID (UUID v4 format) |

**Request Headers**:

Content-Type: application/json
Accept-Encoding: identity
User-Agent: binance-web3/1.4 (Skill)

**Example Request**:

curl --location 'https://web3.binance.com/bapi/defi/v1/public/wallet-direct/security/token/audit' \
--header 'Content-Type: application/json' \
--header 'source: agent' \
--header 'Accept-Encoding: identity' \
--header 'User-Agent: binance-web3/1.4 (Skill)' \
--data '{
    "binanceChainId": "56",
    "contractAddress": "0x55d398326f99059ff775485246999027b3197955",
    "requestId": "'$(uuidgen)'"
}'

**Response Example**:

{
    "code": "000000",
    "data": {
        "requestId": "d6727c70-de6c-4fad-b1d7-c05422d5f26b",
        "hasResult": true,
        "isSupported": true,
        "riskLevelEnum": "LOW",
        "riskLevel": 1,
        "extraInfo": {
            "buyTax": "0",
            "sellTax": "0",
            "isVerified": true
        },
        "riskItems": [
            {
                "id": "CONTRACT_RISK",
                "name": "Contract Risk",
                "details": [
                    {
                        "title": "Honeypot Risk Not Found",
                        "description": "A honeypot is a token that can be bought but not sold",
                        "isHit": false,
                        "riskType": "RISK"
                    }
                ]
            }
        ]
    },
    "success": true
}

**Response Fields**:

| Field | Type | Description | |-----------------------------------|------|-----------------------------------------------------------| | hasResult | boolean | Whether audit data is available | | isSupported | boolean | Whether the token is supported for audit | | riskLevelEnum | string | Risk level: `LOW`, `MEDIUM`, `HIGH` | | riskLevel | number | Risk level number (1-5) | | extraInfo.buyTax | string | Buy tax percentage (null if unknown) | | extraInfo.sellTax | string | Sell tax percentage (null if unknown) | | extraInfo.isVerified | boolean | Whether contract code is verified | | riskItems[].id | string | Risk category: `CONTRACT_RISK`, `TRADE_RISK`, `SCAM_RISK` | | riskItems[].details[].title | string | Risk check title | | riskItems[].details[].description | string | Risk check description | | riskItems[].details[].isHit | boolean | true = risk detected | | riskItems[].details[].riskType | string | `RISK` (critical) or `CAUTION` (warning) |

**Risk Level Reference**:

| riskLevel | riskLevelEnum | Action | Description | |-----------|---------------|--------|-------------| | 0-1 | LOW | Proceed with caution | Lower risk detected, but NOT guaranteed safe. DYOR. | | 2-3 | MEDIUM | Exercise caution | Moderate risks detected, review risk items carefully | | 4 | HIGH | Avoid trading | Critical risks detected, high probability of loss | | 5 | HIGH | Block transaction | Severe risks confirmed, do NOT proceed |

**IMPORTANT**: LOW risk does NOT mean "safe." Audit results are point-in-time snapshots. Project teams can modify contracts or restrict liquidity after purchase. These risks cannot be predicted in advance.

**Response Handling**:

  • If `hasResult=false` OR `isSupported=false`:

→ Reply: "Security audit data is not available for this token on this chain." → Do NOT show `riskLevel`, `riskLevelEnum`, or `riskItems` (data is unreliable when either field is false) → You may suggest the user verify the contract address and chain, or try again later

  • If `hasResult=true` AND `isSupported=true`:

→ Show the full audit result including risk level, tax info, and all risk items → Apply the Risk Level Reference table above for actionable guidance

---

User Agent Header

Include `User-Agent` header with the following string: `binance-web3/1.4 (Skill)`

Notes

1. All numeric fields are string format, convert when using 2. Audit results are ONLY valid when `hasResult:

Read more
@binance
Ships withbinance-skills-hub

Binance Skills Hub is an open skills marketplace that gives AI agents native access to crypto: both centralized and decentralized. Search tokens, execute trades, track wallets, monitor signals, and interact with DeFi protocols, all through natural language.

Stars on GitHub

Momentum

stars in total
1.2k
Star history of binance/binance-skills-hub on GitHub, a chart by star-history.com

Other skills on binance-skills-hub.

More skills from other plugins.

ccxt-cli

ccxt-cli

CCXT command-line interface (ccxt-cli) for interacting with 100+ cryptocurrency exchanges directly from the terminal — no code…

ccxt11d45k
@ccxt@ccxtInstall Skill

Questions about query-token-audit.

Which coding agents can use query-token-audit?
query-token-audit installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.