Skip to content

internet-court/internet-court-skill / vendored/chainbase/web3-data

web3-data

Verified

Two services in one skill: (1) Web3 on-chain data via Chainbase CLI — use when the user asks about blockchain data, token holders, wallet addresses, token prices, ENS domains, transactions, DeFi portfolios, or any on-chain analytics. Triggers: "top holders of", "who holds", "wallet address", "token price", "token transfers", "ENS domain", "on-chain data", "blockchain query", "SQL query on-chain", across Ethereum, BSC, Polygon, Arbitrum, Optimism, Base, Avalanche, zkSync, and other EVM chains. (2) Crypto social intelligence via Tops (chainbase tops) — use when the user asks about trending crypto narratives, social mentions, Twitter/X crypto discussions, narrative discovery, topic heat, or KOL/community signals. Triggers: "trending topics", "crypto narrative", "what's trending in crypto", "social mentions", "who is talking about", "crypto twitter", "KOL signals", "narrative search", "topic posts".

FileKindSize
.gitignoreother17 B
CLAUDE.mdmarkdown1.1 KB
LICENSEother1.0 KB
README.mdmarkdown2.5 KB
SKILL.mdskill md8.0 KB
clawhub.jsonconfig1002 B
references/api-endpoints.mdmarkdown7.0 KB
references/tops-api.mdmarkdown4.1 KB
# CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

## Project

web3-data-skill — A Claude Code skill for exploring Web3 on-chain data using [Chainbase CLI](https://github.com/chainbase-labs/cli).

## Structure

```
├── SKILL.md                    # Skill 定义:路由逻辑、工作流、Chain ID 映射
└── references/
    └── api-endpoints.md        # 完整 API 端点参考文档(38 个端点)
```

## Key Conventions

- 数据查询统一通过 `chainbase` CLI 执行(`npm install -g chainbase-cli`)
- 默认使用 `demo` API Key,可通过 `chainbase config set api-key` 或环境变量 `CHAINBASE_API_KEY` 覆盖
- 默认链为 Ethereum (chain 1),通过 `--chain <id>` 指定其他链
- 使用 `--json` 获取机器可解析的 JSON 输出
- SQL API 为异步模式,CLI 会自动轮询结果

## Testing

```bash
# 测试 token 查询
chainbase token top-holders 0xdAC17F958D2ee523a2206206994597C13D831ec7 --limit 3

# 测试 ENS 解析
chainbase domain ens-resolve vitalik.eth

# 测试 SQL API
chainbase sql execute "SELECT * FROM ethereum.blocks LIMIT 1"
```
deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
agent-cost-reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall