malicious-address-detector
Detect malicious TRON addresses using TronScan's official tag/label database to identify scam, phishing, and fraudulent addresses.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Malicious Address Detector Skill
When to use this skill
CRITICAL: Use this skill BEFORE any transfer to detect scam addresses.
Use when:
- Before sending any TRX/TRC20 tokens
- User asks "Is this a scam address?"
- Validating recipient addresses in transfers
- Checking addresses from unknown sources
What it does
Checks TronScan's official tag database for malicious labels:
- 🚨 Scam - Confirmed scam address
- ⚠️ Phishing - Phishing attack address
- ⚠️ Fake - Impersonation address
- ⚠️ Mixer - Privacy mixer/tumbler
- ⚠️ Gambling - Gambling contract
TronScan API Integration
Endpoint:
https://apilist.tronscanapi.com/api/account/tokens?address={address}
Response includes:
-
tags: Array of labels (e.g., ["Scam", "Phishing"]) -
name: Address name if labeled - Verified status
Usage
from skills.malicious_address_detector.scripts.check_malicious import check_malicious_address
result = await check_malicious_address("TYourAddress...")
# Returns:
# {
# "is_malicious": true,
# "risk_level": "DANGER",
# "tags": ["Scam", "Phishing"],
# "warnings": ["⚠️ Address tagged as Scam on TronScan"],
# "source": "tronscan"
# }
Risk Levels
| Level | Tags | Action |
|---|---|---|
| SAFE | No malicious tags | ✅ Proceed |
| WARNING | Mixer, Gambling | ⚠️ Caution advised |
| DANGER | Scam, Phishing, Fake | 🚨 Block transaction |
Output Format
Safe Address:
✅ No malicious tags detected
Source: TronScan
Malicious Address:
🚨 DANGER: Address tagged as malicious on TronScan
Tags: Scam, Phishing
⚠️ DO NOT send funds to this address!
Integration with Transfer
Called automatically in transfer flow:
# In transfer-tokens skill
malicious_check = await check_malicious_address(to_address)
if malicious_check['is_malicious']:
raise Error(f"🚨 {malicious_check['warnings'][0]}")
Caching
- Cache duration: 5 minutes
- Reduces API calls for repeated checks
- Cache key:
malicious:{address}
Error Handling
- API timeout → Return SAFE with warning
- Invalid address → Return format error
- Network error → Fallback to UNKNOWN
Limitations
- Only detects TronScan-labeled addresses
- New scams may not be tagged yet
- False negatives possible
- Not a replacement for user diligence
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-03-11
- 索引更新时间
- 2026-03-11
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!