$npx -y skills add binance/binance-skills-hub --skill query-token-auditQuery 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
| 1 | # Query Token Audit Skill |
| 2 | |
| 3 | ## Overview |
| 4 | |
| 5 | | API | Function | Use Case | |
| 6 | |-----|---------------------|----------| |
| 7 | | Token Security Audit | Token security scan | Detect honeypot, rug pull, scam, malicious functions | |
| 8 | |
| 9 | ## Use Cases |
| 10 | |
| 11 | 1. **Pre-Trade Safety Check**: Verify token security before buying or swapping |
| 12 | 2. **Scam Detection**: Identify honeypots, fake tokens, and malicious contracts |
| 13 | 3. **Contract Analysis**: Check for dangerous ownership functions and hidden risks |
| 14 | 4. **Tax Verification**: Detect unusual buy/sell taxes before trading |
| 15 | |
| 16 | ## Supported Chains |
| 17 | |
| 18 | | Chain Name | chainId | |
| 19 | |------------|---------| |
| 20 | | BSC | 56 | |
| 21 | | Base | 8453 | |
| 22 | | Solana | CT_501 | |
| 23 | | Ethereum | 1 | |
| 24 | |
| 25 | --- |
| 26 | |
| 27 | ## API: Token Security Audit |
| 28 | |
| 29 | ### Method: POST |
| 30 | |
| 31 | **URL**: |
| 32 | ``` |
| 33 | https://web3.binance.com/bapi/defi/v1/public/wallet-direct/security/token/audit |
| 34 | ``` |
| 35 | |
| 36 | **Request Parameters**: |
| 37 | |
| 38 | | Parameter | Type | Required | Description | |
| 39 | |-----------|------|----------|-------------| |
| 40 | | binanceChainId | string | Yes | Chain ID: `CT_501` (Solana), `56` (BSC), `8453` (Base), `1` (Ethereum) | |
| 41 | | contractAddress | string | Yes | Token contract address | |
| 42 | | requestId | string | Yes | Unique request ID (UUID v4 format) | |
| 43 | |
| 44 | **Request Headers**: |
| 45 | ``` |
| 46 | Content-Type: application/json |
| 47 | Accept-Encoding: identity |
| 48 | User-Agent: binance-web3/1.4 (Skill) |
| 49 | ``` |
| 50 | |
| 51 | **Example Request**: |
| 52 | ```bash |
| 53 | curl --location 'https://web3.binance.com/bapi/defi/v1/public/wallet-direct/security/token/audit' \ |
| 54 | --header 'Content-Type: application/json' \ |
| 55 | --header 'source: agent' \ |
| 56 | --header 'Accept-Encoding: identity' \ |
| 57 | --header 'User-Agent: binance-web3/1.4 (Skill)' \ |
| 58 | --data '{ |
| 59 | "binanceChainId": "56", |
| 60 | "contractAddress": "0x55d398326f99059ff775485246999027b3197955", |
| 61 | "requestId": "'$(uuidgen)'" |
| 62 | }' |
| 63 | ``` |
| 64 | |
| 65 | **Response Example**: |
| 66 | ```json |
| 67 | { |
| 68 | "code": "000000", |
| 69 | "data": { |
| 70 | "requestId": "d6727c70-de6c-4fad-b1d7-c05422d5f26b", |
| 71 | "hasResult": true, |
| 72 | "isSupported": true, |
| 73 | "riskLevelEnum": "LOW", |
| 74 | "riskLevel": 1, |
| 75 | "extraInfo": { |
| 76 | "buyTax": "0", |
| 77 | "sellTax": "0", |
| 78 | "isVerified": true |
| 79 | }, |
| 80 | "riskItems": [ |
| 81 | { |
| 82 | "id": "CONTRACT_RISK", |
| 83 | "name": "Contract Risk", |
| 84 | "details": [ |
| 85 | { |
| 86 | "title": "Honeypot Risk Not Found", |
| 87 | "description": "A honeypot is a token that can be bought but not sold", |
| 88 | "isHit": false, |
| 89 | "riskType": "RISK" |
| 90 | } |
| 91 | ] |
| 92 | } |
| 93 | ] |
| 94 | }, |
| 95 | "success": true |
| 96 | } |
| 97 | ``` |
| 98 | |
| 99 | **Response Fields**: |
| 100 | |
| 101 | | Field | Type | Description | |
| 102 | |-----------------------------------|------|-----------------------------------------------------------| |
| 103 | | hasResult | boolean | Whether audit data is available | |
| 104 | | isSupported | boolean | Whether the token is supported for audit | |
| 105 | | riskLevelEnum | string | Risk level: `LOW`, `MEDIUM`, `HIGH` | |
| 106 | | riskLevel | number | Risk level number (1-5) | |
| 107 | | extraInfo.buyTax | string | Buy tax percentage (null if unknown) | |
| 108 | | extraInfo.sellTax | string | Sell tax percentage (null if unknown) | |
| 109 | | extraInfo.isVerified | boolean | Whether contract code is verified | |
| 110 | | riskItems[].id | string | Risk category: `CONTRACT_RISK`, `TRADE_RISK`, `SCAM_RISK` | |
| 111 | | riskItems[].details[].title | string | Risk check title | |
| 112 | | riskItems[].details[].description | string | Risk check description | |
| 113 | | riskItems[].details[].isHit | boolean | true = risk detected | |
| 114 | | riskItems[].details[].riskType | string | `RISK` (critical) or `CAUTION` (warning) | |
| 115 | |
| 116 | **Risk Level Reference**: |
| 117 | |
| 118 | | riskLevel | riskLevelEnum | Action | Description | |
| 119 | |-----------|---------------|--------|-------------| |
| 120 | | 0-1 | LOW | Proceed with caution | Lower risk detected, but NOT guaranteed safe. DYOR. | |
| 121 | | 2-3 | MEDIUM | Exercise caution | Moderate risks detected, review risk items carefully | |
| 122 | | 4 | HIGH | Avoid trading | Critical risks detected, high probability of loss | |
| 123 | | 5 | HIGH | Block transaction | Severe risks confirmed, d |