Query DeFi portfolio data across 50+ chains via Zapper's GraphQL API.
Get your API key from Zapper Dashboard (free tier available):
mkdir -p ~/.clawdbot/skills/zapper
cat > ~/.clawdbot/skills/zapper/config.json << 'EOF'
{
"apiKey": "YOUR_ZAPPER_API_KEY"
}
EOF
# Portfolio summary
scripts/zapper.sh portfolio 0x...
# Token holdings
scripts/zapper.sh tokens 0x...
# DeFi positions
scripts/zapper.sh apps 0x...
# NFT holdings
scripts/zapper.sh nfts 0x...
# Token price
scripts/zapper.sh price ETH
# Recent transactions
scripts/zapper.sh tx 0x...
# Unclaimed rewards
scripts/zapper.sh claimables 0x...
| Command | Description | Example |
|---|---|---|
| --------- | ------------- | --------- |
portfolio | Token balances + totals across all chains | zapper.sh portfolio 0x123... |
tokens | Detailed token holdings | zapper.sh tokens 0x123... |
apps | DeFi positions (LPs, lending, staking) | zapper.sh apps 0x123... |
nfts | NFT holdings | zapper.sh nfts 0x123... |
price | Token price lookup | zapper.sh price ETH |
tx | Recent transactions (human-readable) | zapper.sh tx 0x123... |
claimables | Unclaimed rewards | zapper.sh claimables 0x123... |
Zapper supports 50+ chains including:
All endpoints use POST https://public.zapper.xyz/graphql with GraphQL queries.
See references/api.md for full API documentation.
curl - HTTP requestsjq - JSON parsingpython3 - Formatting output共 1 个版本