Zapper Skill
Query DeFi portfolio data across 50+ chains via Zapper's GraphQL API.
Quick Start
Setup
Get your API key from Zapper Dashboard (free tier available):
CODEBLOCK0
Basic Usage
CODEBLOCK1
Commands
| Command | Description | Example |
|---|
| INLINECODE0 | Token balances + totals across all chains | INLINECODE1 |
| INLINECODE2 |
Detailed token holdings |
zapper.sh tokens 0x123... |
|
apps <address> | DeFi positions (LPs, lending, staking) |
zapper.sh apps 0x123... |
|
nfts <address> | NFT holdings |
zapper.sh nfts 0x123... |
|
price <symbol> | Token price lookup |
zapper.sh price ETH |
|
tx <address> | Recent transactions (human-readable) |
zapper.sh tx 0x123... |
|
claimables <address> | Unclaimed rewards |
zapper.sh claimables 0x123... |
Supported Networks
Zapper supports 50+ chains including:
- - Ethereum
- Base
- Polygon
- Arbitrum
- Optimism
- Avalanche
- BNB Chain
- zkSync
- Linea
- Scroll
- And more...
Use Cases
- - Portfolio tracking: Aggregate all DeFi positions across chains
- Yield hunting: Check claimables and unclaimed rewards
- NFT portfolio: Track NFT holdings across marketplaces
- Transaction history: Human-readable on-chain activity
- Token prices: Quick price lookups
API Reference
All endpoints use POST https://public.zapper.xyz/graphql with GraphQL queries.
See references/api.md for full API documentation.
Requirements
- -
curl - HTTP requests - INLINECODE16 - JSON parsing
- INLINECODE17 - Formatting output
- Zapper API key (free tier available)
Notes
- - API key is required for all endpoints
- Rate limits apply based on your Zapper plan
- GraphQL queries allow flexible data selection
技能名称: zapper
详细描述:
Zapper 技能
通过 Zapper 的 GraphQL API 查询 50 多条链上的 DeFi 投资组合数据。
快速开始
设置
从 Zapper 仪表盘 获取你的 API 密钥(提供免费层级):
bash
mkdir -p ~/.clawdbot/skills/zapper
cat > ~/.clawdbot/skills/zapper/config.json << EOF
{
apiKey: 你的ZAPPERAPI_密钥
}
EOF
基本用法
bash
投资组合摘要
scripts/zapper.sh portfolio 0x...
代币持仓
scripts/zapper.sh tokens 0x...
DeFi 仓位
scripts/zapper.sh apps 0x...
NFT 持仓
scripts/zapper.sh nfts 0x...
代币价格
scripts/zapper.sh price ETH
近期交易
scripts/zapper.sh tx 0x...
未领取奖励
scripts/zapper.sh claimables 0x...
命令
| 命令 | 描述 | 示例 |
|---|
| portfolio <地址> | 所有链上的代币余额 + 总计 | zapper.sh portfolio 0x123... |
| tokens <地址> |
详细的代币持仓 | zapper.sh tokens 0x123... |
| apps <地址> | DeFi 仓位(流动性池、借贷、质押) | zapper.sh apps 0x123... |
| nfts <地址> | NFT 持仓 | zapper.sh nfts 0x123... |
| price <符号> | 代币价格查询 | zapper.sh price ETH |
| tx <地址> | 近期交易(人类可读) | zapper.sh tx 0x123... |
| claimables <地址> | 未领取奖励 | zapper.sh claimables 0x123... |
支持的网络
Zapper 支持 50 多条链,包括:
- - Ethereum
- Base
- Polygon
- Arbitrum
- Optimism
- Avalanche
- BNB Chain
- zkSync
- Linea
- Scroll
- 以及更多...
使用场景
- - 投资组合追踪:聚合所有链上的 DeFi 仓位
- 收益狩猎:检查可领取和未领取的奖励
- NFT 投资组合:跨市场追踪 NFT 持仓
- 交易历史:人类可读的链上活动
- 代币价格:快速价格查询
API 参考
所有端点均使用 POST https://public.zapper.xyz/graphql 配合 GraphQL 查询。
完整 API 文档请参见 references/api.md。
要求
- - curl - HTTP 请求
- jq - JSON 解析
- python3 - 格式化输出
- Zapper API 密钥(提供免费层级)
备注
- - 所有端点都需要 API 密钥
- 速率限制取决于你的 Zapper 计划
- GraphQL 查询允许灵活的数据选择