Chuyển đến nội dung
Skillpedia
Cơ sở dữ liệu7.0k · #13619

web3-data

Skill này làm gì

Skill này cho phép agent trả lời các câu hỏi về dữ liệu blockchain bằng công cụ dòng lệnh Chainbase. Nó bao gồm người nắm giữ token, giá token, tên ENS, giao dịch và truy vấn tùy chỉnh trên nhiều chuỗi.

Khi nào nên dùng

  • ✓Khi bạn muốn biết ai đang nắm giữ nhiều token nhất, hoặc giá của nó là bao nhiêu.
  • ✓Khi bạn cần tra cứu một ví, tên ENS hoặc một giao dịch trên blockchain.
  • ✓Khi bạn muốn chạy một truy vấn dữ liệu tùy chỉnh trên các bản ghi blockchain.

Liên kết skill

https://github.com/internet-court/internet-court-skill/blob/main/vendored/chainbase/web3-data/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/internet-court/internet-court-skill/blob/main/vendored/chainbase/web3-data/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi muốn biết ai là những người nắm giữ nhiều nhất của token này và giá của nó.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent chọn lệnh Chainbase phù hợp với câu hỏi, thêm đúng chuỗi và trả về kết quả. Nó dùng khóa demo trừ khi bạn đặt khóa riêng, và có thể trả về đầu ra dễ cho máy đọc.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Web3 Data Explorer (Chainbase)

Query on-chain data via the Chainbase CLI.

Quick Reference

Install: npm install -g chainbase-cli (or use npx chainbase-cli)

Auth: Set API key via chainbase config set api-key YOUR_KEY, or env CHAINBASE_API_KEY. Falls back to demo key. If rate-limited, direct user to https://platform.chainbase.com to get a key.

x402 Payment: Supports pay-per-call micropayments via --x402 flag. Setup: chainbase config set private-key 0x...

# Top token holders
chainbase token top-holders 0xdAC17F958D2ee523a2206206994597C13D831ec7 --chain 1 --limit 10

# Token price
chainbase token price 0xdAC17F958D2ee523a2206206994597C13D831ec7

# ENS resolve
chainbase domain ens-resolve vitalik.eth

# SQL query
chainbase sql execute "SELECT * FROM ethereum.blocks ORDER BY number DESC LIMIT 5"

Use --json for machine-parseable output. Use --chain <id> to target a specific chain.

Chain IDs

Chain ID Chain ID
Ethereum 1 Optimism 10
BSC 56 Base 8453
Polygon 137 zkSync 324
Avalanche 43114 Arbitrum 42161

Default to Ethereum (chain 1) unless user specifies otherwise.

Routing Logic

Match user intent to the right CLI command:

User wants CLI command
Latest block number chainbase block latest
Block details chainbase block detail <number>
Transaction detail chainbase tx detail <hash>
Wallet transaction history chainbase tx list <address>
Token info (name, symbol, supply) chainbase token metadata <contract>
Token price chainbase token price <contract>
Historical token price chainbase token price-history <contract> --from <ts> --to <ts>
List of holder addresses chainbase token holders <contract>
Top token holders / who holds a token chainbase token top-holders <contract>
Token transfer history chainbase token transfers --contract <addr>
Native token balance (ETH/BNB) chainbase balance native <address>
ERC20 token balances of wallet chainbase balance tokens <address>
DeFi portfolio positions chainbase balance portfolios <address>
ENS domains held by address chainbase domain ens <address>
ENS name → address chainbase domain ens-resolve <name>
Address → ENS name chainbase domain ens-reverse <address>
Space ID resolve (BSC) chainbase domain spaceid-resolve <domain>
Space ID reverse (BSC) chainbase domain spaceid-reverse <address>
Call smart contract function chainbase contract call --address <contract> --function "fn" --abi '[...]' --params '[...]'
Anything not covered above SQL API: chainbase sql execute "SELECT ..."

Workflow

  1. Identify intent — Determine what data the user needs
  2. Resolve identifiers — If user gives token name (e.g. "USDT"), look up the contract address. Common tokens:
    • USDT: 0xdAC17F958D2ee523a2206206994597C13D831ec7 (ETH)
    • USDC: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 (ETH)
    • WETH: 0xC02aaA39b223FE8D0A0e5c4F27eAD9083C756Cc2 (ETH)
    • DAI: 0x6B175474E89094C44Da98b954EedeAC495271d0F (ETH)
    • WBTC: 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599 (ETH)
    • If unknown, use chainbase token metadata <contract> or ask the user for the contract address
  3. Select command — Use the routing table above; fall back to SQL API for complex/custom queries
  4. Execute — Run the CLI command. Add --json when you need to parse the output programmatically
  5. Present results — Format data clearly with tables for lists, highlight key insights

Global Options

All commands support these options:

Option Description Default
--chain <id> Target chain 1 (Ethereum)
--json Machine-parseable JSON output false
--page <n> Page number for paginated results 1
--limit <n> Results per page 20
--x402 Enable x402 micropayment mode false

SQL API Fallback

When CLI commands don't cover the query, translate user intent to SQL:

chainbase sql execute "SELECT from_address, SUM(value) as total FROM ethereum.token_transfers WHERE contract_address = '0x...' GROUP BY from_address ORDER BY total DESC LIMIT 20"

Common table patterns (replace ethereum with chain name):

  • {chain}.blocks — Block data
  • {chain}.transactions — Transactions
  • `{chain}.token_transfe
Câu hỏi thường gặp

Mặc định nó dùng chuỗi nào?

Ethereum, trừ khi bạn chỉ định chuỗi khác.

Tôi có cần khóa API không?

Skill dùng khóa demo làm phương án dự phòng, và khóa này có thể bị giới hạn tốc độ. Nếu vậy, bạn cần khóa riêng từ Chainbase.

Nó có thể trả phí cho từng yêu cầu không?

Có, với tùy chọn x402, cần khóa riêng của ví được đặt trong cài đặt Chainbase.

Chi tiết

Mô tả gốc của tác giả

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 crypt

repo: internet-court/internet-court-skill

Độ phổ biến

Sao GitHub
7.0k
Vị trí xếp hạng
#13619
Giấy phép
—
Cập nhật
26/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự