← 返回
开发者工具 Key 中文

Zapper Api

Query DeFi portfolios, token holdings, NFTs, transactions, and prices via Zapper API. Supports 50+ chains. Use when user asks about wallet balances, DeFi positions, NFT collections, token prices, or transaction history.
通过 Zapper API 查询 DeFi 投资组合、代币持仓、NFT、交易及价格,支持 50+ 条链。适用于用户询问钱包余额、DeFi 仓位、NFT 收藏、代币价格或交易记录。
zivhm
开发者工具 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 1,503
下载
💾 31
安装
1
版本
#latest

概述

Zapper API

Query DeFi portfolios, NFTs, and transactions across 50+ chains using Zapper's GraphQL API.

Setup

  1. Get API key from Zapper Dashboard (free tier available)
  2. Configure in ~/.config/zapper/addresses.json:

```json

{

"apiKey": "your-api-key",

"wallets": [

{"label": "Main", "address": "0x..."},

{"label": "DeFi", "address": "0x..."}

]

}

```

Or set environment variable: export ZAPPER_API_KEY="your-api-key"

Commands

CommandDescriptionExample
-------------------------------
portfolio
Token + DeFi totalszapper.py portfolio 0x123...
tokens
Detailed token holdingszapper.py tokens 0x123...
apps
DeFi positions (LPs, lending, staking)zapper.py apps 0x123...
nfts
NFT holdings by valuezapper.py nfts 0x123...
tx
Recent transactions (30 days)zapper.py tx 0x123...
price Token price lookupzapper.py price ETH
claimables
Unclaimed rewardszapper.py claimables 0x123...
configShow configurationzapper.py config

Options

FlagCommandsDescription
-----------------------------
--24hportfolio, tokensShow 24h price changes
--shortportfolioOutput only total value
--per-walletportfolioShow each configured wallet separately
--jsonallOutput raw JSON
--limit NmostMax items to display

Usage

# Portfolio summary
python3 scripts/zapper.py portfolio 0xADDRESS

# With 24h price changes
python3 scripts/zapper.py portfolio 0xADDRESS --24h

# Just total value
python3 scripts/zapper.py portfolio 0xADDRESS --short

# Per-wallet breakdown
python3 scripts/zapper.py portfolio --per-wallet

# Token holdings with prices
python3 scripts/zapper.py tokens 0xADDRESS --24h

# DeFi positions
python3 scripts/zapper.py apps 0xADDRESS

# NFT holdings
python3 scripts/zapper.py nfts 0xADDRESS

# Recent transactions
python3 scripts/zapper.py tx 0xADDRESS

# Token price
python3 scripts/zapper.py price ETH

# Unclaimed rewards
python3 scripts/zapper.py claimables 0xADDRESS

# JSON output
python3 scripts/zapper.py portfolio 0xADDRESS --json

Wallet Labels

Use configured wallet labels instead of addresses:

python3 scripts/zapper.py portfolio "Main"
python3 scripts/zapper.py tokens "DeFi"

Supported Tokens (price command)

ETH, WETH, USDC, USDT, DAI, WBTC, LINK, UNI, AAVE, MKR

Supported Chains

Ethereum, Base, Arbitrum, Optimism, Polygon, Solana, BNB Chain, Avalanche, zkSync, Linea, Scroll, Blast, and 40+ more.

Notes

  • Free tier API key available at zapper.xyz/developers
  • Rate limits apply - avoid rapid repeated requests
  • NFT valuations based on floor prices
  • Transaction history limited to 30 days

References

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-28 21:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,215
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,217
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,210