- Fetch a wallet’s total value, 24h change, and chain breakdown
- List token holdings with prices and handle pagination
- Aggregate portfolio value across multiple wallets
- Fetch balance charts to visualize value over time
Prerequisites
- A Zerion API key (get one here)
- One or more wallet addresses to track
- Node.js 18+ (for native
fetch)
Steps
Next steps
- Add DeFi positions to include staked and deposited assets in the totals
- Track PnL and cost basis per wallet for tax reporting
- Set up webhooks to update the dashboard in real time when any tracked wallet transacts