web3-data
यह क्या करती है
यह स्किल एजेंट को Chainbase कमांड-लाइन टूल से ब्लॉकचेन डेटा के सवालों के जवाब देने देती है। इसमें टोकन होल्डर, टोकन कीमतें, ENS नाम, लेन-देन और कई चेन पर कस्टम क्वेरी शामिल हैं।
कब इस्तेमाल करें
- ✓जब आप जानना चाहते हों कि किसी टोकन के सबसे ज़्यादा होल्डर कौन हैं, या उसकी कीमत क्या है।
- ✓जब आपको ब्लॉकचेन पर wallet, ENS नाम या लेन-देन देखना हो।
- ✓जब आप ब्लॉकचेन रिकॉर्ड पर कस्टम डेटा क्वेरी चलाना चाहते हों।
Skill का लिंक
https://github.com/internet-court/internet-court-skill/blob/main/vendored/chainbase/web3-data/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मुझे जानना है कि इस टोकन के सबसे बड़े होल्डर कौन हैं और उसकी कीमत क्या है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट आपके सवाल के लिए सही Chainbase कमांड चुनता है, सही चेन जोड़ता है, और नतीजा लौटाता है। आप अपनी कुंजी सेट न करें तो वह डेमो कुंजी इस्तेमाल करता है, और वह मशीन-अनुकूल आउटपुट भी दे सकता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
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
- Identify intent — Determine what data the user needs
- 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
- USDT:
- Select command — Use the routing table above; fall back to SQL API for complex/custom queries
- Execute — Run the CLI command. Add
--jsonwhen you need to parse the output programmatically - 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
अक्सर पूछे जाने वाले सवाल
डिफ़ॉल्ट रूप से कौन-सी चेन इस्तेमाल होती है?
Ethereum, जब तक आप कोई दूसरी चेन न बताएँ।
क्या मुझे API कुंजी चाहिए?
स्किल डेमो कुंजी पर लौटती है, जिस पर दर-सीमा हो सकती है। ऐसा हो तो आपको Chainbase से अपनी कुंजी चाहिए।
क्या हर अनुरोध का भुगतान हो सकता है?
हाँ, x402 विकल्प से, जिसके लिए Chainbase सेटिंग्स में wallet की निजी कुंजी चाहिए।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 7.0k
- रैंकिंग में स्थान
- #13619
- लाइसेंस
- —
- अपडेट की गई
- 26/10/2026
कमेंट
- …
इस repository की और skills
internet-court
7.0kयह आपके एजेंट को AI एजेंट या पेड सेवा से सुरक्षित तरीके से भुगतान और लेन-देन की शुरुआती दिशा देती है, और सही विशेष गाइड बताती है।
genlayer-erc7710-connector
7.0kयह आपके एजेंट को AI समीक्षा के नतीजे को अनुमति प्रणाली से जोड़ने देती है, ताकि खराब समीक्षा एजेंट की अनुमतियाँ सीमित कर सके।
genlayer-intelligent-contracts
7.0kयह आपके एजेंट को AI जज के नियम, सबूत और नतीजे तय करने में मदद करती है, जो जाँचता है कि दूसरा एजेंट अपने अधिकार के दायरे में रहा या नहीं।
x402-erc7710
7.0kयह आपके एजेंट को हर अनुरोध पर वेब सेवा का भुगतान करने और तय सीमा के भीतर लगातार खर्च करने की व्यवस्था में मदद करती है।
मिलती-जुलती skills
discrawl
394kयह आपके एजेंट को Discord संदेशों के सेव किए गए स्थानीय आर्काइव में खोजने, उसका सारांश बनाने और उसकी ताज़गी जांचने में मदद करती है।
clickhouse-io
280kआपके एजेंट को ClickHouse databases में queries और schemas optimize करने में मदद करता है। high-performance analytical workloads के लिए best practices लागू करता है। जब analytical queries बहुत धीमी हों, तब इसका उपयोग करें।
scientific-db-pubmed-database
280kआपके एजेंट को बायोमेडिकल क्षेत्र के वैज्ञानिक लेख खोजने में मदद करता है। जिस रिसर्च में खास मेडिकल जानकारी चाहिए, उसके लिए यह काम का है।