Query Token Audit Skill
Overview
| API |
Function |
Use Case |
| Token Security Audit |
Token security scan |
Detect honeypot, rug pull, scam, malicious functions |
Use Cases
- Pre-Trade Safety Check: Verify token security before buying or swapping
- Scam Detection: Identify honeypots, fake tokens, and malicious contracts
- Contract Analysis: Check for dangerous ownership functions and hidden risks
- 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.
Result Validity:
Audit results are ONLY valid when both conditions are met:
hasResult: true — Audit data is available
isSupported: true — Token is supported for audit
When invalid, do NOT display risk level or security checks.
User Agent Header
Include User-Agent header with the following string: binance-web3/1.4 (Skill)
Notes
- All numeric fields are string format, convert when using
- Audit results are ONLY valid when
hasResult: true AND isSupported: true
riskLevel: 5 means transaction should be blocked; riskLevel: 4 is high risk
- Tax thresholds: >10% is critical, 5-10% is warning, <5% is acceptable
- Generate unique UUID v4 for each audit request
- Only output security check risk flags, do NOT provide any investment advice
- Always end with disclaimer:
⚠️ This audit result is for reference only and does not constitute investment advice. Always conduct your own research.
1---
2name: query-token-audit
3description: |
4 Query token security audit to detect scams, honeypots, and malicious contracts before trading.
5 Returns comprehensive security analysis including contract risks, trading risks, and scam detection.
6 Use when users ask "is this token safe?", "check token security", "audit token", or before any swap.
7metadata:
8 source: https://skillmd.com/skills/aibot88/query-token-audit
9 author: binance-web3-team
10 version: "1.4"
11---
12
13# Query Token Audit Skill
14
15## Overview
16
17| API | Function | Use Case |
18|-----|---------------------|----------|
19| Token Security Audit | Token security scan | Detect honeypot, rug pull, scam, malicious functions |
20
21## Use Cases
22
231. **Pre-Trade Safety Check**: Verify token security before buying or swapping
242. **Scam Detection**: Identify honeypots, fake tokens, and malicious contracts
253. **Contract Analysis**: Check for dangerous ownership functions and hidden risks
264. **Tax Verification**: Detect unusual buy/sell taxes before trading
27
28## Supported Chains
29
30| Chain Name | chainId |
31|------------|---------|
32| BSC | 56 |
33| Base | 8453 |
34| Solana | CT_501 |
35| Ethereum | 1 |
36
37---
38
39## API: Token Security Audit
40
41### Method: POST
42
43**URL**:
44```
45https://web3.binance.com/bapi/defi/v1/public/wallet-direct/security/token/audit
46```
47
48**Request Parameters**:
49
50| Parameter | Type | Required | Description |
51|-----------|------|----------|-------------|
52| binanceChainId | string | Yes | Chain ID: `CT_501` (Solana), `56` (BSC), `8453` (Base), `1` (Ethereum) |
53| contractAddress | string | Yes | Token contract address |
54| requestId | string | Yes | Unique request ID (UUID v4 format) |
55
56**Request Headers**:
57```
58Content-Type: application/json
59Accept-Encoding: identity
60User-Agent: binance-web3/1.4 (Skill)
61```
62
63**Example Request**:
64```bash
65curl --location 'https://web3.binance.com/bapi/defi/v1/public/wallet-direct/security/token/audit' \
66--header 'Content-Type: application/json' \
67--header 'source: agent' \
68--header 'Accept-Encoding: identity' \
69--header 'User-Agent: binance-web3/1.4 (Skill)' \
70--data '{
71 "binanceChainId": "56",
72 "contractAddress": "0x55d398326f99059ff775485246999027b3197955",
73 "requestId": "'$(uuidgen)'"
74}'
75```
76
77**Response Example**:
78```json
79{
80 "code": "000000",
81 "data": {
82 "requestId": "d6727c70-de6c-4fad-b1d7-c05422d5f26b",
83 "hasResult": true,
84 "isSupported": true,
85 "riskLevelEnum": "LOW",
86 "riskLevel": 1,
87 "extraInfo": {
88 "buyTax": "0",
89 "sellTax": "0",
90 "isVerified": true
91 },
92 "riskItems": [
93 {
94 "id": "CONTRACT_RISK",
95 "name": "Contract Risk",
96 "details": [
97 {
98 "title": "Honeypot Risk Not Found",
99 "description": "A honeypot is a token that can be bought but not sold",
100 "isHit": false,
101 "riskType": "RISK"
102 }
103 ]
104 }
105 ]
106 },
107 "success": true
108}
109```
110
111**Response Fields**:
112
113| Field | Type | Description |
114|-----------------------------------|------|-----------------------------------------------------------|
115| hasResult | boolean | Whether audit data is available |
116| isSupported | boolean | Whether the token is supported for audit |
117| riskLevelEnum | string | Risk level: `LOW`, `MEDIUM`, `HIGH` |
118| riskLevel | number | Risk level number (1-5) |
119| extraInfo.buyTax | string | Buy tax percentage (null if unknown) |
120| extraInfo.sellTax | string | Sell tax percentage (null if unknown) |
121| extraInfo.isVerified | boolean | Whether contract code is verified |
122| riskItems[].id | string | Risk category: `CONTRACT_RISK`, `TRADE_RISK`, `SCAM_RISK` |
123| riskItems[].details[].title | string | Risk check title |
124| riskItems[].details[].description | string | Risk check description |
125| riskItems[].details[].isHit | boolean | true = risk detected |
126| riskItems[].details[].riskType | string | `RISK` (critical) or `CAUTION` (warning) |
127
128**Risk Level Reference**:
129
130| riskLevel | riskLevelEnum | Action | Description |
131|-----------|---------------|--------|-------------|
132| 0-1 | LOW | Proceed with caution | Lower risk detected, but NOT guaranteed safe. DYOR. |
133| 2-3 | MEDIUM | Exercise caution | Moderate risks detected, review risk items carefully |
134| 4 | HIGH | Avoid trading | Critical risks detected, high probability of loss |
135| 5 | HIGH | Block transaction | Severe risks confirmed, do NOT proceed |
136
137**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.
138
139**Result Validity**:
140
141Audit results are ONLY valid when both conditions are met:
142- `hasResult: true` — Audit data is available
143- `isSupported: true` — Token is supported for audit
144
145When invalid, do NOT display risk level or security checks.
146
147---
148
149## User Agent Header
150
151Include `User-Agent` header with the following string: `binance-web3/1.4 (Skill)`
152
153## Notes
154
1551. All numeric fields are string format, convert when using
1562. Audit results are ONLY valid when `hasResult: true` AND `isSupported: true`
1573. `riskLevel: 5` means transaction should be blocked; `riskLevel: 4` is high risk
1584. Tax thresholds: >10% is critical, 5-10% is warning, <5% is acceptable
1595. Generate unique UUID v4 for each audit request
1606. Only output security check risk flags, do NOT provide any investment advice
1617. Always end with disclaimer: `⚠️ This audit result is for reference only and does not constitute investment advice. Always conduct your own research.`