wallet-analysislisted
Install: claude install-skill sendaifun/skills
# Wallet Analysis with Zerion API
Build Solana-first wallet analysis features with Zerion's normalized wallet API. Use this skill when the user wants portfolio views, token balances, interpreted transactions, charts, or wallet-level PnL for Solana addresses, while still supporting the same flows across Zerion's broader multichain surface.
## Overview
Zerion is especially useful when you need:
- Solana wallet portfolio summaries without building your own indexer
- Solana token holdings and wallet activity in a normalized schema
- Wallet PnL and historical chart views for portfolio apps and agents
- API-first implementation guidance, with MCP available for agent-native environments
## Authentication
Prefer these auth modes in this order:
### 1. API key for app integrations
Use Zerion API directly when the user is building a product integration.
```bash
export ZERION_API_KEY="zk_dev_..."
curl -u "$ZERION_API_KEY:" \
"https://api.zerion.io/v1/wallets/8BH9pjtgyZDC4iAQH5ZiYDZ1MDWC98xki2V8NzqqKW3K/portfolio"
```
For explicit headers, use HTTP Basic auth with `base64("${ZERION_API_KEY}:")`.
### 2. x402 for no-key agent workflows, including Solana
If the user does not want to provision an API key, Zerion documents x402 as a pay-per-request path for AI workflows. Zerion's official agent repo also documents Solana-backed x402, so a Solana wallet can be used instead of an API key when the runtime supports x402 payment handshakes.
```bash
export SOLANA_PRIVATE_KEY="5C1y..."