query-token-audit
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseQuery Token Audit Skill
代币审计查询Skill
Overview
概述
| API | Function | Use Case |
|---|---|---|
| Token Security Audit | Token security scan | Detect honeypot, rug pull, scam, malicious functions |
| API | 功能 | 使用场景 |
|---|---|---|
| 代币安全审计 | 代币安全扫描 | 检测蜜罐、rug pull、骗局、恶意功能 |
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 |
| 公链名称 | chainId |
|---|---|
| BSC | 56 |
| Base | 8453 |
| Solana | CT_501 |
| Ethereum | 1 |
API: Token Security Audit
API: 代币安全审计
Method: POST
请求方法: POST
URL:
https://web3.binance.com/bapi/defi/v1/public/wallet-direct/security/token/auditRequest Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| binanceChainId | string | Yes | Chain ID: |
| contractAddress | string | Yes | Token contract address |
| requestId | string | Yes | Unique request ID (UUID v4 format) |
Request Headers:
Content-Type: application/json
Accept-Encoding: identityExample Request:
bash
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' \
--data '{
"binanceChainId": "56",
"contractAddress": "0xe6df05ce8c8301223373cf5b969afcb1498c5528",
"requestId": "'$(uuidgen)'"
}'Response Example:
json
{
"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: |
| 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: |
| 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 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 | BLOCKED | 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:
- — Audit data is available
hasResult: true - — Token is supported for audit
isSupported: true
When invalid, do NOT display risk level or security checks.
URL:
https://web3.binance.com/bapi/defi/v1/public/wallet-direct/security/token/audit请求参数:
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| binanceChainId | string | 是 | 链ID: |
| contractAddress | string | 是 | 代币合约地址 |
| requestId | string | 是 | 唯一请求ID(UUID v4格式) |
请求头:
Content-Type: application/json
Accept-Encoding: identity请求示例:
bash
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' \
--data '{
"binanceChainId": "56",
"contractAddress": "0xe6df05ce8c8301223373cf5b969afcb1498c5528",
"requestId": "'$(uuidgen)'"
}'响应示例:
json
{
"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
}响应字段:
| 字段名 | 类型 | 说明 |
|---|---|---|
| hasResult | boolean | 是否有可用的审计数据 |
| isSupported | boolean | 该代币是否支持审计 |
| riskLevelEnum | string | 风险等级: |
| riskLevel | number | 风险等级数值(1-5) |
| extraInfo.buyTax | string | 买税百分比(未知则为null) |
| extraInfo.sellTax | string | 卖税百分比(未知则为null) |
| extraInfo.isVerified | boolean | 合约代码是否已验证 |
| riskItems[].id | string | 风险分类: |
| riskItems[].details[].title | string | 风险检查项标题 |
| riskItems[].details[].description | string | 风险检查项说明 |
| riskItems[].details[].isHit | boolean | true = 检测到风险 |
| riskItems[].details[].riskType | string | |
风险等级参考:
| riskLevel | riskLevelEnum | 建议操作 | 说明 |
|---|---|---|---|
| 0-1 | LOW | 谨慎操作 | 检测到较低风险,但不保证绝对安全。DYOR。 |
| 2-3 | MEDIUM | 提高警惕 | 检测到中等风险,请仔细查看风险项 |
| 4 | HIGH | 避免交易 | 检测到严重风险,损失概率极高 |
| 5 | BLOCKED | 阻断交易 | 已确认存在极高风险,请勿进行操作 |
重要提示:低风险并不代表「安全」。审计结果是当前时点的快照。项目方可能在用户购买后修改合约或限制流动性,此类风险无法提前预测。
结果有效性:
审计结果仅在同时满足以下两个条件时有效:
- — 存在可用审计数据
hasResult: true - — 该代币支持审计
isSupported: true
当结果无效时,请勿展示风险等级或安全检查结果。
Notes
注意事项
- All numeric fields are string format, convert when using
- Audit results are ONLY valid when AND
hasResult: trueisSupported: true - means transaction should be blocked;
riskLevel: 5is high riskriskLevel: 4 - 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.
- 所有数值字段均为字符串格式,使用时请自行转换
- 审计结果仅在且
hasResult: true时有效isSupported: true - 表示应阻断交易;
riskLevel: 5为高风险riskLevel: 4 - 税费阈值:>10%为严重,5-10%为警告,<5%为可接受
- 每个审计请求都需要生成唯一的UUID v4
- 仅输出安全检查风险标识,请勿提供任何投资建议
- 回复末尾必须添加免责声明:
⚠️ 本审计结果仅供参考,不构成投资建议。请务必自行做好研究。