skyinsights
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkyInsights Risk Intelligence
SkyInsights 风险情报
Use for all API calls. The script handles credentials, request formatting, error handling, screening polling, and terminal-friendly output.
{skillDir}/scripts/skyinsights.py所有API调用请使用脚本。该脚本会处理凭证、请求格式化、错误处理、筛查轮询以及适配终端的输出。
{skillDir}/scripts/skyinsights.pyRunning Commands
运行命令
bash
python {skillDir}/scripts/skyinsights.py <subcommand> [args...]bash
python {skillDir}/scripts/skyinsights.py <subcommand> [args...]Subcommands
子命令
- —
kya <address> [chain=eth]GET /v4/kya/risk - —
labels <address> [chain=eth]GET /v4/kya/labels - —
screen <address> [chain=eth] [rule_set_id=standard-mode-rule-set]+ poll (⚠️ 5–15s)GET /v4/kya/screening_v2 - —
kyt <txn_hash> <chain>GET /v4/kyt/risk - — show usage
help
rule_set_idstandard-mode-rule-setfast-mode-rule-set- — 调用
kya <address> [chain=eth]接口GET /v4/kya/risk - — 调用
labels <address> [chain=eth]接口GET /v4/kya/labels - — 调用
screen <address> [chain=eth] [rule_set_id=standard-mode-rule-set]接口并轮询结果(⚠️ 耗时5–15秒)GET /v4/kya/screening_v2 - — 调用
kyt <txn_hash> <chain>接口GET /v4/kyt/risk - — 显示使用说明
help
rule_set_idstandard-mode-rule-setfast-mode-rule-setSupported Chains
支持的链
Per-endpoint chain support. Use the API Value when specifying the parameter.
chain| Chain | API Value | kya/labels | kya/risk | kya/screening_v2 | kyt/risk |
|---|---|---|---|---|---|
| Bitcoin | | ✓ | ✓ | ✓ | ✓ |
| Bitcoin Cash | | ✓ | ✓ | ||
| Litecoin | | ✓ | ✓ | ||
| Solana | | ✓ | ✓ | ||
| Ethereum | | ✓ | ✓ | ✓ | ✓ |
| Polygon | | ✓ | ✓ | ✓ | ✓ |
| Optimism | | ✓ | ✓ | ✓ | ✓ |
| Arbitrum | | ✓ | ✓ | ✓ | ✓ |
| Avalanche | | ✓ | ✓ | ✓ | ✓ |
| Binance Smart Chain | | ✓ | ✓ | ✓ | ✓ |
| Fantom | | ✓ | ✓ | ||
| Tron | | ✓ | ✓ | ✓ | ✓ |
| Wemix | | ✓ | ✓ | ✓ | ✓ |
| Base | | ✓ | ✓ | ✓ | ✓ |
| Blast | | ✓ | ✓ | ||
| Linea | | ✓ | ✓ | ||
| Sonic | | ✓ | ✓ | ||
| Unichain | | ✓ | ✓ | ||
| Polygon zkEVM | | ✓ | ✓ |
supports:kya/screening_v2btcethpolygonoparbavaxbsctronwemixbaseis supported bymulti-chainonly.kya/risk
各端点支持的链有所不同。指定参数时请使用API对应值。
chain| 链名称 | API值 | kya/labels | kya/risk | kya/screening_v2 | kyt/risk |
|---|---|---|---|---|---|
| Bitcoin | | ✓ | ✓ | ✓ | ✓ |
| Bitcoin Cash | | ✓ | ✓ | ||
| Litecoin | | ✓ | ✓ | ||
| Solana | | ✓ | ✓ | ||
| Ethereum | | ✓ | ✓ | ✓ | ✓ |
| Polygon | | ✓ | ✓ | ✓ | ✓ |
| Optimism | | ✓ | ✓ | ✓ | ✓ |
| Arbitrum | | ✓ | ✓ | ✓ | ✓ |
| Avalanche | | ✓ | ✓ | ✓ | ✓ |
| Binance Smart Chain | | ✓ | ✓ | ✓ | ✓ |
| Fantom | | ✓ | ✓ | ||
| Tron | | ✓ | ✓ | ✓ | ✓ |
| Wemix | | ✓ | ✓ | ✓ | ✓ |
| Base | | ✓ | ✓ | ✓ | ✓ |
| Blast | | ✓ | ✓ | ||
| Linea | | ✓ | ✓ | ||
| Sonic | | ✓ | ✓ | ||
| Unichain | | ✓ | ✓ | ||
| Polygon zkEVM | | ✓ | ✓ |
支持以下链:kya/screening_v2btcethpolygonoparbavaxbsctronwemix仅base支持kya/risk参数。multi-chain
Default Workflow
默认工作流
Route user requests as follows:
- User mentions a transaction hash / tx / txn → run
kyt - User asks about labels / entity / institution / exchange for an address → run
labels - User asks if an address is risky / safe / suspicious (no subcommand specified):
- Run first — fast, checks the address's own labels and risk score.
kya - If returns
kyaorNone, automatically follow withLow— a clean address can still have counterparty exposure to sanctioned or hacked funds. Tell the user: "该地址自身风险较低,正在进行合规筛查以检查对手方暴露情况,请稍候(约 5–15 秒)…"screen - If returns
kya,Medium, orHigh, present the result directly without runningUnknown.screen
- Run
按以下规则路由用户请求:
- 用户提及交易哈希 / tx / txn → 执行命令
kyt - 用户查询地址的标签 / 实体 / 机构 / 交易所信息 → 执行命令
labels - 用户询问地址是否有风险 / 是否安全 / 是否可疑(未指定子命令):
- 先执行命令——速度快,检查地址自身的标签和风险评分。
kya - 若返回
kya或None,自动跟进执行Low命令——干净的地址仍可能存在与制裁或被盗资金的对手方暴露风险。告知用户:"该地址自身风险较低,正在进行合规筛查以检查对手方暴露情况,请稍候(约 5–15 秒)…"screen - 若返回
kya、Medium或High,直接展示结果,无需执行Unknown命令。screen
- 先执行
Output Expectations
输出规范
Printed shapes per subcommand:
undefined各子命令对应的输出格式:
undefinedkya
kya
Risk: {None|Low|Medium|High|Unknown} (score={0-5})
Reasons: {reason1}, {reason2} ← omitted if empty
风险等级: {None|Low|Medium|High|Unknown} (评分={0-5})
风险原因: {reason1}, {reason2} ← 若无则省略
labels
labels
Entity: {name} Type: {type}
Labels: {label1}, {label2} ← omitted if none
实体: {name} 类型: {type}
标签: {label1}, {label2} ← 若无则省略
screen
screen
Screening: {Pass|Fail|Pending}
Flagged counterparties: {count}
{counterparty_address} {risk_level} {reason} ← one line per flagged party
筛查结果: {Pass|Fail|Pending}
标记的对手方数量: {count}
{counterparty_address} {risk_level} {reason} ← 每个标记对手方占一行
kyt
kyt
Tx Risk: {None|Low|Medium|High|Unknown} (score={0-5})
Transfers: {count}
{from} → {to} {amount} {token} ← one line per transfer
Risk level emojis: ✅ None / 🟡 Low / 🟠 Medium / 🔴 High / ⚪ Unknown
After running the script, summarize the key findings in plain language — especially the risk level and notable risk factors. Don't just repeat the raw output.交易风险等级: {None|Low|Medium|High|Unknown} (评分={0-5})
转账记录数: {count}
{from} → {to} {amount} {token} ← 每条转账记录占一行
风险等级对应表情:✅ None / 🟡 Low / 🟠 Medium / 🔴 High / ⚪ Unknown
执行脚本后,用通俗易懂的语言总结关键发现——尤其是风险等级和显著风险因素,不要直接重复原始输出内容。Error Handling
错误处理
| Code | Meaning |
|---|---|
| 200 | Success |
| 400 | Bad Request — invalid parameters (e.g., unsupported chain, malformed address) |
| 401 | Unauthorized — missing, invalid, or expired |
| 402 | Payment Required — account quota exceeded |
| 403 | Forbidden — access denied |
| 429 | Too Many Requests — rate limit reached |
| 500 | Internal Server Error |
- Missing credentials: tell the user to set and
SKYINSIGHTS_API_KEY.SKYINSIGHTS_API_SECRET - Unsupported chain: ask the user to retry with one of the supported chain identifiers.
- is
risk_level: the address or transaction is not indexed on that chain, or has no available risk history.Unknown
| 状态码 | 含义 |
|---|---|
| 200 | 请求成功 |
| 400 | 请求参数错误(例如:不支持的链、格式无效的地址) |
| 401 | 未授权——缺少、无效或过期的 |
| 402 | 需付费——账户配额已用尽 |
| 403 | 禁止访问——无权限 |
| 429 | 请求过于频繁——触发速率限制 |
| 500 | 服务器内部错误 |
- 缺少凭证:告知用户设置和
SKYINSIGHTS_API_KEY环境变量。SKYINSIGHTS_API_SECRET - 不支持的链:请用户使用支持的链标识符重试。
- 为
risk_level:该地址或交易在对应链上未被索引,或无可用风险历史记录。Unknown
Risk Factors Reference
风险因素参考
| Risk Factor | Default Level | Description |
|---|---|---|
| Sanctioned | High | Associated with international sanctions lists or restricted entities |
| TerroristFinancing | High | Involved in terrorist financing or support activities |
| ChildAbuse | High | Related to child exploitation or illegal content payments |
| Hack | High | Funds linked to hacking or security breach incidents |
| Scam | High | Fraud-related activities (e.g., phishing, rug pulls) |
| Ransomware | High | Connected to ransomware attacks or extortion |
| Darkweb | High | Associated with dark web markets or illicit transactions |
| Laundering | High | Associated with on-chain money laundering activities |
| Blocked | High | Officially frozen by stablecoin issuers (e.g., USDT, USDC) |
| Blacklisted | High | Listed in blacklists by users or partners |
| Mixing | Medium | Related to mixing services or fund obfuscation behavior |
| Gambling | Medium | Connected to gambling or betting platforms |
| 风险因素 | 默认等级 | 描述 |
|---|---|---|
| Sanctioned | 高 | 与国际制裁名单或受限实体相关联 |
| TerroristFinancing | 高 | 涉及恐怖主义融资或支持活动 |
| ChildAbuse | 高 | 与儿童剥削或非法内容付款相关 |
| Hack | 高 | 资金与黑客攻击或安全漏洞事件相关 |
| Scam | 高 | 涉及欺诈活动(例如:钓鱼、跑路骗局) |
| Ransomware | 高 | 与勒索软件攻击或敲诈勒索相关 |
| Darkweb | 高 | 与暗网市场或非法交易相关联 |
| Laundering | 高 | 与链上洗钱活动相关 |
| Blocked | 高 | 被稳定币发行方(如USDT、USDC)正式冻结 |
| Blacklisted | 高 | 被用户或合作伙伴列入黑名单 |
| Mixing | 中 | 与混币服务或资金混淆行为相关 |
| Gambling | 中 | 与赌博或博彩平台相关联 |
Risk Score & Level Mapping
风险评分与等级映射
| Score | Level | Description |
|---|---|---|
| 0 | None | No known risk — no history of malicious behavior or suspicious associations |
| 1 | Low | Low likelihood of illicit involvement, no unusual behavior detected |
| 2–3 | Medium | Moderate risk due to indirect exposure or uncertain behavior |
| 4–5 | High | Strong indications of potential involvement in malicious or high-risk activity |
| 评分 | 等级 | 描述 |
|---|---|---|
| 0 | None | 无已知风险——无恶意行为历史或可疑关联 |
| 1 | Low | 非法参与可能性低,未检测到异常行为 |
| 2–3 | Medium | 因间接暴露或不确定行为存在中等风险 |
| 4–5 | High | 有强烈迹象表明可能涉及恶意或高风险活动 |
Risk Reasons Format
风险原因格式
The field explains why a risk was assigned. Each entry is prefixed by type:
risk_reasons- — risk comes from a specific label
label: Scam/Rugpull label: Sanction/OFAC- — risk linked to a known entity without a direct label
entity: huione entity: blender_io
risk_reasons- — 风险来自特定标签
label: Scam/Rugpull label: Sanction/OFAC- — 风险与已知实体相关,但无直接标签
entity: huione entity: blender_io
Usage (for users)
用户使用说明
When a user asks how to use this skill, show them these commands:
/skyinsights kya <address> [chain] Address risk assessment / 地址风险评分
/skyinsights labels <address> [chain] Address labels & entity info / 地址标签和实体信息
/skyinsights screen <address> [chain] Compliance screening (AML) / 合规筛查,需 5–15 秒
/skyinsights kyt <txn_hash> <chain> Transaction risk / 交易风险分析
/skyinsights help Show help / 显示帮助Prerequisites / 前提条件: Set credentials in environment or file / 在环境变量或 文件中设置凭证:
.env.envSKYINSIGHTS_API_KEY=your_key
SKYINSIGHTS_API_SECRET=your_secret当用户询问如何使用此Skill时,展示以下命令:
/skyinsights kya <address> [chain] 地址风险评估 / 地址风险评分
/skyinsights labels <address> [chain] 地址标签与实体信息 / 地址标签和实体信息
/skyinsights screen <address> [chain] 合规筛查(AML) / 合规筛查,需 5–15 秒
/skyinsights kyt <txn_hash> <chain> 交易风险分析 / 交易风险分析
/skyinsights help 显示帮助 / 显示帮助前提条件 / 前提条件: 在环境变量或 文件中设置凭证:
.envSKYINSIGHTS_API_KEY=your_key
SKYINSIGHTS_API_SECRET=your_secret