SkyInsights Risk Intelligence
Use {skillDir}/scripts/skyinsights.py for all API calls. The script handles credentials, request formatting, error handling, screening polling, and terminal-friendly output.
Running Commands
CODEBLOCK0
Subcommands
- -
kya <address> [chain=eth] — INLINECODE2 - INLINECODE3 — INLINECODE4
- INLINECODE5 —
GET /v4/kya/screening_v2 + poll (⚠️ 5–15s) - INLINECODE7 — INLINECODE8
- INLINECODE9 — show usage
INLINECODE10 options: standard-mode-rule-set (default), INLINECODE12
Supported Chains
Per-endpoint chain support. Use the API Value when specifying the chain parameter.
| Chain | API Value | kya/labels | kya/risk | kya/screening_v2 | kyt/risk |
|---|
| Bitcoin | INLINECODE14 | ✓ | ✓ | ✓ | ✓ |
| Bitcoin Cash |
bch | ✓ | ✓ | | |
| Litecoin |
ltc | ✓ | ✓ | | |
| Solana |
sol | ✓ | ✓ | | |
| Ethereum |
eth | ✓ | ✓ | ✓ | ✓ |
| Polygon |
polygon | ✓ | ✓ | ✓ | ✓ |
| Optimism |
op | ✓ | ✓ | ✓ | ✓ |
| Arbitrum |
arb | ✓ | ✓ | ✓ | ✓ |
| Avalanche |
avax | ✓ | ✓ | ✓ | ✓ |
| Binance Smart Chain |
bsc | ✓ | ✓ | ✓ | ✓ |
| Fantom |
ftm | ✓ | ✓ | | |
| Tron |
tron | ✓ | ✓ | ✓ | ✓ |
| Wemix |
wemix | ✓ | ✓ | ✓ | ✓ |
| Base |
base | ✓ | ✓ | ✓ | ✓ |
| Blast |
blast | ✓ | ✓ | | |
| Linea |
linea | ✓ | ✓ | | |
| Sonic |
sonic | ✓ | ✓ | | |
| Unichain |
unichain | ✓ | ✓ | | |
| Polygon zkEVM |
polygon_zkevm | ✓ | ✓ | | |
INLINECODE33 supports: btc eth polygon op arb avax bsc tron wemix base
multi-chain is supported by kya/risk only.
Default Workflow
Route user requests as follows:
- - User mentions a transaction hash / tx / txn → run INLINECODE46
- User asks about labels / entity / institution / exchange for an address → run INLINECODE47
- User asks if an address is risky / safe / suspicious (no subcommand specified):
1. Run
kya first — fast, checks the address's own labels and risk score.
2. If
kya returns
None or
Low, automatically follow with
screen — a clean address can still have counterparty exposure to sanctioned or hacked funds. Tell the user: "该地址自身风险较低,正在进行合规筛查以检查对手方暴露情况,请稍候(约 5–15 秒)…"
3. If
kya returns
Medium,
High, or
Unknown, present the result directly without running
screen.
Output Expectations
Printed shapes per subcommand:
CODEBLOCK1
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.
Error Handling
Bad Request — invalid parameters (e.g., unsupported chain, malformed address) |
| 401 | Unauthorized — missing, invalid, or expired
X-API-Key /
X-API-Secret |
| 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
SKYINSIGHTS_API_KEY and SKYINSIGHTS_API_SECRET. - Unsupported chain: ask the user to retry with one of the supported chain identifiers.
- INLINECODE62 is
Unknown: the address or transaction is not indexed on that chain, or has no available risk history.
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 |
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 |
Risk Reasons Format
The risk_reasons field explains why a risk was assigned. Each entry is prefixed by type:
- -
label: Scam/Rugpull — risk comes from a specific label - INLINECODE66
- INLINECODE67 — risk linked to a known entity without a direct label
- INLINECODE68
Usage (for users)
When a user asks how to use this skill, show them these commands:
CODEBLOCK2
Prerequisites / 前提条件: Set credentials in environment or .env file / 在环境变量或 .env 文件中设置凭证:
CODEBLOCK3
SkyInsights 风险情报
所有 API 调用均使用 {skillDir}/scripts/skyinsights.py。该脚本负责处理凭证、请求格式化、错误处理、筛查轮询以及终端友好输出。
运行命令
bash
python {skillDir}/scripts/skyinsights.py <子命令> [参数...]
子命令
- - kya <地址> [链=eth] — GET /v4/kya/risk
- labels <地址> [链=eth] — GET /v4/kya/labels
- screen <地址> [链=eth] [规则集ID=standard-mode-rule-set] — GET /v4/kya/screening_v2 + 轮询(⚠️ 5–15秒)
- kyt <交易哈希> <链> — GET /v4/kyt/risk
- help — 显示用法
rulesetid 选项:standard-mode-rule-set(默认)、fast-mode-rule-set
支持的链
按端点支持的链。指定 chain 参数时请使用 API 值。
| 链 | API 值 | kya/labels | kya/risk | kya/screening_v2 | kyt/risk |
|---|
| 比特币 | btc | ✓ | ✓ | ✓ | ✓ |
| 比特币现金 |
bch | ✓ | ✓ | | |
| 莱特币 | ltc | ✓ | ✓ | | |
| 索拉纳 | sol | ✓ | ✓ | | |
| 以太坊 | eth | ✓ | ✓ | ✓ | ✓ |
| Polygon | polygon | ✓ | ✓ | ✓ | ✓ |
| Optimism | op | ✓ | ✓ | ✓ | ✓ |
| Arbitrum | arb | ✓ | ✓ | ✓ | ✓ |
| Avalanche | avax | ✓ | ✓ | ✓ | ✓ |
| 币安智能链 | bsc | ✓ | ✓ | ✓ | ✓ |
| Fantom | ftm | ✓ | ✓ | | |
| 波场 | tron | ✓ | ✓ | ✓ | ✓ |
| Wemix | wemix | ✓ | ✓ | ✓ | ✓ |
| Base | base | ✓ | ✓ | ✓ | ✓ |
| Blast | blast | ✓ | ✓ | | |
| Linea | linea | ✓ | ✓ | | |
| Sonic | sonic | ✓ | ✓ | | |
| Unichain | unichain | ✓ | ✓ | | |
| Polygon zkEVM | polygon_zkevm | ✓ | ✓ | | |
kya/screening_v2 支持:btc eth polygon op arb avax bsc tron wemix base
仅 kya/risk 支持 multi-chain。
默认工作流程
按如下方式处理用户请求:
- - 用户提到交易哈希 / tx / txn → 运行 kyt
- 用户询问地址的标签 / 实体 / 机构 / 交易所 → 运行 labels
- 用户询问地址是否有风险 / 安全 / 可疑(未指定子命令):
1. 先运行 kya — 快速,检查地址自身的标签和风险评分。
2. 如果 kya 返回 None 或 Low,自动跟进运行 screen — 一个干净的地址仍可能存在对手方暴露于受制裁或被黑客攻击资金的风险。告知用户:该地址自身风险较低,正在进行合规筛查以检查对手方暴露情况,请稍候(约 5–15 秒)…
3. 如果 kya 返回 Medium、High 或 Unknown,直接展示结果,不运行 screen。
输出格式
每个子命令的打印格式:
kya
风险:{None|Low|Medium|High|Unknown}(评分={0-5})
原因:{原因1},{原因2} ← 如果为空则省略
labels
实体:{名称} 类型:{类型}
标签:{标签1},{标签2} ← 如果没有则省略
screen
筛查:{Pass|Fail|Pending}
标记的对手方:{数量}
{对手方地址} {风险等级} {原因} ← 每个标记对手方一行
kyt
交易风险:{None|Low|Medium|High|Unknown}(评分={0-5})
转账:{数量}
{发送方} → {接收方} {金额} {代币} ← 每笔转账一行
风险等级表情符号:✅ None / 🟡 Low / 🟠 Medium / 🔴 High / ⚪ Unknown
运行脚本后,用通俗语言总结关键发现——尤其是风险等级和显著风险因素。不要只是重复原始输出。
错误处理
错误请求 — 参数无效(例如,不支持的链、格式错误的地址) |
| 401 | 未授权 — 缺少、无效或过期的 X-API-Key / X-API-Secret |
| 402 | 需要付款 — 账户配额已超 |
| 403 | 禁止 — 访问被拒绝 |
| 429 | 请求过多 — 达到速率限制 |
| 500 | 内部服务器错误 |
- - 缺少凭证:告知用户设置 SKYINSIGHTSAPIKEY 和 SKYINSIGHTSAPISECRET。
- 不支持的链:要求用户使用支持的链标识符重试。
- risk_level 为 Unknown:该地址或交易在该链上未被索引,或没有可用的风险历史。
风险因素参考
| 风险因素 | 默认等级 | 描述 |
|---|
| 受制裁 | 高 | 与国际制裁名单或受限实体关联 |
| 恐怖融资 |
高 | 涉及恐怖主义融资或支持活动 |
| 虐待儿童 | 高 | 与儿童剥削或非法内容支付相关 |
| 黑客攻击 | 高 | 资金与黑客攻击或安全漏洞事件关联 |
| 诈骗 | 高 | 欺诈相关活动(例如,钓鱼、拉地毯) |
| 勒索软件 | 高 | 与勒索软件攻击或敲诈关联 |
| 暗网 | 高 | 与暗网市场或非法交易关联 |
| 洗钱 | 高 | 与链上洗钱活动关联 |
| 冻结 | 高 | 被稳定币发行方(例如,USDT、USDC)正式冻结 |
| 黑名单 | 高 | 被用户或合作伙伴列入黑名单 |
| 混币 | 中 | 与混币服务或资金混淆行为相关 |
| 赌博 | 中 | 与赌博或博彩平台关联 |
风险评分与等级映射
| 评分 | 等级 | 描述 |
|---|
| 0 | 无 | 无已知风险 — 无恶意行为或可疑关联历史 |
| 1 |
低 | 涉及非法活动的可能性低,未检测到异常行为 |
| 2–3 | 中 | 由于间接暴露或不确定行为而存在中等风险 |
| 4–5 | 高 | 强烈迹象表明可能涉及恶意或高风险活动 |
风险原因格式
risk_reasons 字段解释风险分配的原因。每个条目以类型为前缀:
- - label: Scam/Rugpull — 风险来自特定标签
- label: Sanction/OFAC
- entity: huione — 风险与已知实体关联,无直接标签
- entity: blender_io
用法(面向用户)
当用户询问如何使用此技能时,向他们展示以下命令:
/skyinsights kya <地址> [链] 地址风险评估 / Address risk assessment
/skyinsights labels <地址> [链] 地址标签和实体信息 / Address labels & entity info
/skyinsights screen <地址> [链] 合规筛查(AML)/ Compliance screening (AML),需 5–15 秒
/skyinsights kyt <交易哈希> <链> 交易风险分析 / Transaction risk
/skyinsights help 显示帮助 / Show help
前提条件: 在环境变量或 .env 文件中设置凭证:
SKYINSIGHTSAPIKEY=your_key
SKYINSIGHTSAPISECRET=your_secret