query-token-audit

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Query Token Audit Skill

代币审计查询Skill

Overview

概述

APIFunctionUse Case
Token Security AuditToken security scanDetect honeypot, rug pull, scam, malicious functions
API功能使用场景
代币安全审计代币安全扫描检测蜜罐、rug pull、骗局、恶意功能

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
  1. 交易前安全检查:在购买或兑换代币前验证代币安全性
  2. 骗局检测:识别蜜罐、虚假代币和恶意合约
  3. 合约分析:检查危险的所有者权限函数和隐藏风险
  4. 税费验证:在交易前检测异常的买卖税费

Supported Chains

支持的公链

Chain NamechainId
BSC56
Base8453
SolanaCT_501
Ethereum1

公链名称chainId
BSC56
Base8453
SolanaCT_501
Ethereum1

API: Token Security Audit

API: 代币安全审计

Method: POST

请求方法: POST

URL:
https://web3.binance.com/bapi/defi/v1/public/wallet-direct/security/token/audit
Request Parameters:
ParameterTypeRequiredDescription
binanceChainIdstringYesChain ID:
CT_501
(Solana),
56
(BSC),
8453
(Base),
1
(Ethereum)
contractAddressstringYesToken contract address
requestIdstringYesUnique request ID (UUID v4 format)
Request Headers:
Content-Type: application/json
Accept-Encoding: identity
Example 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:
FieldTypeDescription
hasResultbooleanWhether audit data is available
isSupportedbooleanWhether the token is supported for audit
riskLevelEnumstringRisk level:
LOW
,
MEDIUM
,
HIGH
riskLevelnumberRisk level number (1-5)
extraInfo.buyTaxstringBuy tax percentage (null if unknown)
extraInfo.sellTaxstringSell tax percentage (null if unknown)
extraInfo.isVerifiedbooleanWhether contract code is verified
riskItems[].idstringRisk category:
CONTRACT_RISK
,
TRADE_RISK
,
SCAM_RISK
riskItems[].details[].titlestringRisk check title
riskItems[].details[].descriptionstringRisk check description
riskItems[].details[].isHitbooleantrue = risk detected
riskItems[].details[].riskTypestring
RISK
(critical) or
CAUTION
(warning)
Risk Level Reference:
riskLevelriskLevelEnumActionDescription
0-1LOWProceed with cautionLower risk detected, but NOT guaranteed safe. DYOR.
2-3MEDIUMExercise cautionModerate risks detected, review risk items carefully
4HIGHAvoid tradingCritical risks detected, high probability of loss
5BLOCKEDBlock transactionSevere 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.

URL:
https://web3.binance.com/bapi/defi/v1/public/wallet-direct/security/token/audit
请求参数:
参数名类型必填说明
binanceChainIdstring链ID:
CT_501
(Solana),
56
(BSC),
8453
(Base),
1
(Ethereum)
contractAddressstring代币合约地址
requestIdstring唯一请求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
}
响应字段:
字段名类型说明
hasResultboolean是否有可用的审计数据
isSupportedboolean该代币是否支持审计
riskLevelEnumstring风险等级:
LOW
,
MEDIUM
,
HIGH
riskLevelnumber风险等级数值(1-5)
extraInfo.buyTaxstring买税百分比(未知则为null)
extraInfo.sellTaxstring卖税百分比(未知则为null)
extraInfo.isVerifiedboolean合约代码是否已验证
riskItems[].idstring风险分类:
CONTRACT_RISK
,
TRADE_RISK
,
SCAM_RISK
riskItems[].details[].titlestring风险检查项标题
riskItems[].details[].descriptionstring风险检查项说明
riskItems[].details[].isHitbooleantrue = 检测到风险
riskItems[].details[].riskTypestring
RISK
(严重)或
CAUTION
(警告)
风险等级参考:
riskLevelriskLevelEnum建议操作说明
0-1LOW谨慎操作检测到较低风险,但不保证绝对安全。DYOR。
2-3MEDIUM提高警惕检测到中等风险,请仔细查看风险项
4HIGH避免交易检测到严重风险,损失概率极高
5BLOCKED阻断交易已确认存在极高风险,请勿进行操作
重要提示:低风险并不代表「安全」。审计结果是当前时点的快照。项目方可能在用户购买后修改合约或限制流动性,此类风险无法提前预测。
结果有效性:
审计结果仅在同时满足以下两个条件时有效:
  • hasResult: true
    — 存在可用审计数据
  • isSupported: true
    — 该代币支持审计
当结果无效时,请勿展示风险等级或安全检查结果。

Notes

注意事项

  1. All numeric fields are string format, convert when using
  2. Audit results are ONLY valid when
    hasResult: true
    AND
    isSupported: true
  3. riskLevel: 5
    means transaction should be blocked;
    riskLevel: 4
    is high risk
  4. Tax thresholds: >10% is critical, 5-10% is warning, <5% is acceptable
  5. Generate unique UUID v4 for each audit request
  6. Only output security check risk flags, do NOT provide any investment advice
  7. Always end with disclaimer:
    ⚠️ This audit result is for reference only and does not constitute investment advice. Always conduct your own research.
  1. 所有数值字段均为字符串格式,使用时请自行转换
  2. 审计结果仅在
    hasResult: true
    isSupported: true
    时有效
  3. riskLevel: 5
    表示应阻断交易;
    riskLevel: 4
    为高风险
  4. 税费阈值:>10%为严重,5-10%为警告,<5%为可接受
  5. 每个审计请求都需要生成唯一的UUID v4
  6. 仅输出安全检查风险标识,请勿提供任何投资建议
  7. 回复末尾必须添加免责声明:
    ⚠️ 本审计结果仅供参考,不构成投资建议。请务必自行做好研究。