WalletLens
An advanced multi-chain wallet analyzer that provides detailed wallet profiles with USD pricing, human-readable NFT collection names, ENS domain support, and sophisticated bot detection across 8 major EVM networks.
Key Features
- - Multi-Chain Support: 8 EVM networks with ApeChain as primary focus
- USD Price Integration: Real-time token prices via CoinGecko with graceful degradation
- ENS Domain Support: Resolve .eth names across all commands automatically
- Collection Name Resolution: Human-readable NFT collection names via Alchemy API + RPC fallback
- Natural Language Summaries: Pretty mode includes intelligent wallet insights
- Advanced Bot Detection: Sophisticated scoring algorithm to identify automated accounts
- Reliable Performance: Automatic retry logic with exponential backoff for network resilience
- Dual Output Formats: JSON (default) for agents,
--pretty flag for human-readable output - Minimal Dependencies: Uses public RPC endpoints, optional Alchemy API key for enhanced features
Installation
This skill requires Node.js (v16+). No additional dependencies needed - uses built-in fetch API.
CODEBLOCK0
Quick Start
Basic wallet lookup on ApeChain:
CODEBLOCK1
Same query with human-readable output:
CODEBLOCK2
Cross-chain lookup on Ethereum:
CODEBLOCK3
Commands Reference
All commands support --chain <name> (defaults to apechain) and --pretty flag for human-readable output.
Wallet Lookup
Purpose: Complete wallet profile with balance, transaction count, and NFT activity summary
CODEBLOCK4
Returns: Native token balance, transaction count, NFT activity (received/sent), collection count, top holdings
Example Output (JSON):
CODEBLOCK5
Example Output (Pretty):
CODEBLOCK6
Contract Information
Purpose: Detailed smart contract analysis including type detection and metadata
CODEBLOCK7
Returns: Contract type (ERC-20/721/1155), name, symbol, total supply, decimals, owner
Use Cases: Token research, contract verification, due diligence
Transaction History
Purpose: Recent transfer activity with timestamps and transaction details
CODEBLOCK8
Returns: Recent ERC-20 and NFT transfers with direction (IN/OUT), timestamps, contract addresses
Use Cases: Activity analysis, transaction tracking, wallet monitoring
NFT Holdings
Purpose: Current NFT collection with detailed token information
CODEBLOCK9
Returns: NFTs currently held, grouped by collection, token IDs, transfer statistics
Use Cases: NFT portfolio analysis, collection tracking, investment research
Bot Detection
Purpose: Advanced behavioral analysis to identify potential automated accounts
CODEBLOCK10
Returns: Bot score (0-100), verdict classification, detailed breakdown of scoring factors
Scoring Factors:
- - Wrapped Token Usage (30pts): Frequency of using wrapped native tokens
- Fast Flipping (25pts): Quick buy-sell cycles within 24 hours
- Fast Listing (20pts): Immediate listing after purchase (within 30 minutes)
- Aggressive Pricing (15pts): Price manipulation patterns
- Cross-Collection Activity (10pts): Activity spread across many collections
Score Interpretation:
- - 75-100: Definite bot
- 60-74: Likely bot
- 40-59: Suspicious
- 20-39: Probably human
- 0-19: Human
Use Cases: Due diligence, airdrop filtering, community verification
Supported Networks
See references/CHAINS.md for comprehensive chain information including reliability status and performance characteristics.
Reliable Chains ✅
- - ApeChain (primary) - Fastest, most reliable
- Ethereum - Stable, high-value addresses
- Base - Fast L2 performance
- Arbitrum - Reliable L2 with official RPC
Intermittent Chains 🟡
- - Polygon - May timeout, use with retry logic
- Optimism - Occasional performance issues
- BNB Chain - Variable reliability
- Avalanche - Limited testing, use with caution
Output Formats
All scripts support two output modes:
JSON Format (Default)
Structured data ideal for programmatic consumption and agent workflows:
CODEBLOCK11
Pretty Format (Human-Readable)
Clean, emoji-enhanced output for human review:
CODEBLOCK12
Environment Variables
No environment variables required. The skill uses public RPC endpoints configured in scripts/lib/rpc.js.
Custom RPC Endpoints (Advanced)
To use custom RPC endpoints, modify the
CHAINS object in
scripts/lib/rpc.js:
CODEBLOCK13
Error Handling & Reliability
Automatic Retry Logic
- - 3 retry attempts with exponential backoff (500ms, 1s, 2s)
- 10-second timeout per request
- Graceful failure with clean error messages
Input Validation
- - Address format validation (0x + 40 hex characters)
- Chain name validation against supported list
- Clean error messages without stack traces
Common Error Messages
CODEBLOCK14
Performance & Limitations
Response Times
- - Fast (< 1s): ApeChain, Arbitrum
- Good (1-2s): Ethereum, Base
- Variable (1-5s): Polygon, Optimism, BSC, Avalanche
Data Coverage
- - Recent Activity: 500K-2M blocks depending on chain performance
- Historical Limitations: Very old transactions may not appear
- NFT Detection: ERC-721 and ERC-1155 support via Transfer events
- Bot Analysis: Requires minimum 3 NFT purchases for scoring
Resource Usage
- - Memory: Minimal - processes data in streams
- Network: Burst usage during queries, then idle
- CPU: Low - mostly I/O bound operations
Troubleshooting
Network Issues
CODEBLOCK15
Empty Results
- - Verify address is active on the selected chain
- Try different chain if cross-chain activity expected
- Increase block scan range for older activity
Performance Optimization
- - Use
--limit parameter to reduce transaction history size - Choose reliable chains (ApeChain, Ethereum, Base, Arbitrum) for consistent performance
- Monitor response times and adjust expectations per chain
Advanced Usage
Batch Analysis
CODEBLOCK16
Cross-Chain Investigation
CODEBLOCK17
Collection Analysis
CODEBLOCK18
References
Version History
- - v2.0: Added retry logic, input validation, pretty formatting, comprehensive chain documentation
- v1.0: Initial release with basic multi-chain support and bot detection
Need help? Check the references directory for detailed documentation or run any command without arguments for usage instructions.
WalletLens
一款先进的多链钱包分析工具,可提供详细的钱包档案,包含美元定价、人类可读的NFT集合名称、ENS域名支持,以及覆盖8条主流EVM网络的精密机器人检测功能。
核心特性
- - 多链支持:8条EVM网络,以ApeChain为主要焦点
- 美元价格集成:通过CoinGecko获取实时代币价格,具备优雅降级机制
- ENS域名支持:自动解析所有命令中的.eth名称
- 集合名称解析:通过Alchemy API + RPC回退机制获取人类可读的NFT集合名称
- 自然语言摘要:美化模式包含智能钱包洞察
- 高级机器人检测:精密评分算法识别自动化账户
- 可靠性能:自动重试逻辑配合指数退避策略,保障网络弹性
- 双输出格式:JSON(默认)适用于代理程序,--pretty标志用于人类可读输出
- 最小依赖:使用公共RPC端点,可选Alchemy API密钥增强功能
安装
本技能需要Node.js(v16+)。无需额外依赖——使用内置fetch API。
bash
验证Node.js版本
node --version
快速开始
在ApeChain上查询基础钱包信息:
bash
node scripts/wallet-lookup.js 0x8dd6390be6dc732c92b161b9793a3948b56c0126
相同查询的人类可读输出:
bash
node scripts/wallet-lookup.js 0x8dd6390be6dc732c92b161b9793a3948b56c0126 --pretty
在以太坊上跨链查询:
bash
node scripts/wallet-lookup.js 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 --chain ethereum --pretty
命令参考
所有命令支持--chain <名称>(默认为apechain)和--pretty标志用于人类可读输出。
钱包查询
用途:完整的钱包档案,包含余额、交易次数和NFT活动摘要
bash
node scripts/wallet-lookup.js <地址> [--chain <名称>] [--pretty]
返回内容:原生代币余额、交易次数、NFT活动(接收/发送)、集合数量、主要持仓
示例输出(JSON):
json
{
address: 0x8dd6390be6dc732c92b161b9793a3948b56c0126,
chain: ApeChain,
chainId: 33139,
isContract: false,
balance: { APE: 10.1398 },
transactionCount: 6352,
nftActivity: { received: 2, sent: 1 },
nftCollectionsHeld: 1,
topHoldings: [
{ contract: 0x6f2a21a8b9cf699d7d3a713a9d7cfbb9e9760f97, count: 2 }
],
explorer: https://apescan.io/address/0x8dd6390be6dc732c92b161b9793a3948b56c0126
}
示例输出(美化版):
🔍 钱包:0x8dd6390be6dc732c92b161b9793a3948b56c0126
⛓️ 链:ApeChain (33139)
💰 余额:10.1398 APE
📊 交易:6,352
🎨 NFT活动:接收2个,发送1个
📦 集合:1
🔗 浏览器:https://apescan.io/address/0x8dd6390be6dc732c92b161b9793a3948b56c0126
合约信息
用途:详细的智能合约分析,包括类型检测和元数据
bash
node scripts/contract-info.js <地址> [--chain <名称>] [--pretty]
返回内容:合约类型(ERC-20/721/1155)、名称、符号、总供应量、小数位数、所有者
使用场景:代币研究、合约验证、尽职调查
交易历史
用途:近期转账活动,包含时间戳和交易详情
bash
node scripts/tx-history.js <地址> [--chain <名称>] [--limit <数量>] [--pretty]
返回内容:近期ERC-20和NFT转账,包含方向(转入/转出)、时间戳、合约地址
使用场景:活动分析、交易追踪、钱包监控
NFT持仓
用途:当前NFT集合,包含详细代币信息
bash
node scripts/nft-holdings.js <地址> [--chain <名称>] [--collection <合约>] [--pretty]
返回内容:当前持有的NFT,按集合分组、代币ID、转账统计
使用场景:NFT投资组合分析、集合追踪、投资研究
机器人检测
用途:高级行为分析,识别潜在自动化账户
bash
node scripts/bot-detect.js <地址> [--chain <名称>] [--pretty]
返回内容:机器人评分(0-100)、判定分类、评分因素详细分解
评分因素:
- - 包装代币使用(30分):使用包装原生代币的频率
- 快速倒卖(25分):24小时内快速买卖循环
- 快速上架(20分):购买后立即上架(30分钟内)
- 激进定价(15分):价格操纵模式
- 跨集合活动(10分):跨多个集合的活动分布
评分解读:
- - 75-100:确定机器人
- 60-74:疑似机器人
- 40-59:可疑
- 20-39:可能为人类
- 0-19:人类
使用场景:尽职调查、空投筛选、社区验证
支持的网络
参见 references/CHAINS.md 获取全面的链信息,包括可靠性状态和性能特征。
可靠链 ✅
- - ApeChain(主要)— 最快、最可靠
- Ethereum — 稳定、高价值地址
- Base — 快速L2性能
- Arbitrum — 可靠L2,配备官方RPC
间歇性链 🟡
- - Polygon — 可能超时,需配合重试逻辑
- Optimism — 偶发性能问题
- BNB Chain — 可靠性波动
- Avalanche — 测试有限,谨慎使用
输出格式
所有脚本支持两种输出模式:
JSON格式(默认)
结构化数据,适合程序化消费和代理工作流:
bash
node scripts/wallet-lookup.js <地址>
返回格式化JSON
美化格式(人类可读)
清晰、带表情符号增强的输出,适合人工审查:
bash
node scripts/wallet-lookup.js <地址> --pretty
返回带表情符号和清晰分区的格式化文本
环境变量
无需环境变量。本技能使用配置在 scripts/lib/rpc.js 中的公共RPC端点。
自定义RPC端点(高级)
如需使用自定义RPC端点,修改 scripts/lib/rpc.js 中的 CHAINS 对象:
javascript
const CHAINS = {
apechain: {
id: 33139,
rpc: your-custom-rpc-url,
name: ApeChain,
symbol: APE,
explorer: https://apescan.io
},
// ... 其他链
};
错误处理与可靠性
自动重试逻辑
- - 3次重试尝试,采用指数退避(500ms、1s、2s)
- 每次请求10秒超时
- 优雅失败,附带清晰错误信息
输入验证
- - 地址格式验证(0x + 40个十六进制字符)
- 链名称验证,对照支持列表
- 清晰错误信息,不含堆栈跟踪
常见错误信息
json
{error: 地址格式无效。地址必须为0x后跟40个十六进制字符}
{error: 不支持的链\invalidchain\。支持的链:apechain, ethereum, base, arbitrum, polygon, optimism, avalanche, bsc}
{error: RPC请求在10000ms后超时}
性能与限制
响应时间
- - 快速(<1s):ApeChain、Arbitrum
- 良好(1-2s):Ethereum、Base
- 波动(1-5s):Poly