web3-data

Explore Web3 on-chain data using Chainbase APIs. Use this skill when the user asks about blockchain data, token holders, wallet addresses, token prices, ENS domains, transactions, DeFi portfolios, or any on-chain analytics. Triggers include: "top holders of", "who holds", "wallet address", "token price", "token transfers", "ENS domain", "on-chain data", "blockchain query", "SQL query on-chain", or any request to look up, analyze, or explore Web3/blockchain data across Ethereum, BSC, Polygon, Arbitrum, Optimism, Base, Avalanche, zkSync, and other EVM chains.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "web3-data" with this command: npx skills add lxcong/web3-data-skill/lxcong-web3-data-skill-web3-data

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

ChainIDChainID
Ethereum1Optimism10
BSC56Base8453
Polygon137zkSync324
Avalanche43114Arbitrum42161

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

Routing Logic

Match user intent to the right CLI command:

User wantsCLI command
Latest block numberchainbase block latest
Block detailschainbase block detail <number>
Transaction detailchainbase tx detail <hash>
Wallet transaction historychainbase tx list <address>
Token info (name, symbol, supply)chainbase token metadata <contract>
Token pricechainbase token price <contract>
Historical token pricechainbase token price-history <contract> --from <ts> --to <ts>
List of holder addresseschainbase token holders <contract>
Top token holders / who holds a tokenchainbase token top-holders <contract>
Token transfer historychainbase token transfers --contract <addr>
Native token balance (ETH/BNB)chainbase balance native <address>
ERC20 token balances of walletchainbase balance tokens <address>
DeFi portfolio positionschainbase balance portfolios <address>
ENS domains held by addresschainbase domain ens <address>
ENS name → addresschainbase domain ens-resolve <name>
Address → ENS namechainbase 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 functionchainbase contract call --address <contract> --function "fn" --abi '[...]' --params '[...]'
Anything not covered aboveSQL 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:

OptionDescriptionDefault
--chain <id>Target chain1 (Ethereum)
--jsonMachine-parseable JSON outputfalse
--page <n>Page number for paginated results1
--limit <n>Results per page20
--x402Enable x402 micropayment modefalse

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_transfers — ERC20 transfers
  • {chain}.token_metas — Token metadata
  • {chain}.logs — Event logs

SQL constraints: max 100,000 results per query.

For full command help, run chainbase --help or chainbase <command> --help.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

setup-synclaw

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

Raven Transfer

Wallet-aware Raven Atlas transfer operations for NGN payouts. Use when an agent must check wallet balance, resolve Nigerian bank accounts, enforce explicit c...

Registry SourceRecently Updated
Web3

Tether Wallet Development Kit

Tether Wallet Development Kit (WDK) for building non-custodial multi-chain wallets. Use when working with @tetherto/wdk-core, wallet modules (wdk-wallet-btc,...

Registry SourceRecently Updated
0103
Profile unavailable