跳到正文
TakoAPI
返回技能列表

web3-data

由 lxcong 提供

Web & Frontend Development
318下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Explore Web3 on-chain data using Chainbase APIs.

描述

该技能的功能

Queries on-chain blockchain data using the Chainbase API. Covers token holders, wallet balances, NFT ownership, DeFi portfolios, ENS domains, transaction history, and token prices across Ethereum and other EVM chains. Falls back to a SQL interface for custom analytics not covered by fixed endpoints.

Covers a wide range of on-chain queries through a single script interface with automatic fallback to SQL for cases that fixed REST endpoints cannot handle.

何时使用

  • Look up top holders of a specific ERC20 token
  • Check which NFTs a wallet address owns
  • Get current or historical price of a token
  • Trace transfer history for USDT or USDC
  • Query custom on-chain data with SQL

示例工作流

输入

User asks: Who are the top 10 holders of USDT on Ethereum?

智能体
  1. 1

    Identify intent as top token holders query

  2. 2

    Resolve USDT to contract address 0xdAC17F958D2ee523a2206206994597C13D831ec7 on Ethereum (chain_id=1)

  3. 3

    Select endpoint GET /v1/token/top-holders

  4. 4

    Run: scripts/chainbase.sh /v1/token/top-holders chain_id=1 contract_address=0xdAC17F958D2ee523a2206206994597C13D831ec7 limit=10

  5. 5

    Format results as a table with addresses and balances

输出

A ranked table of the top 10 USDT holder addresses with their respective balances

前置要求

  • CHAINBASE_API_KEY environment variable (optional, falls back to demo key; upgrade at https://console.chainbase.com)

安装

clawhub install lxcong/web3-data

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接