skills/wallet-analysis/SKILL.md
Analyze Solana wallets and multichain portfolios with Zerion API. Use for Solana portfolio value, token positions, transaction history, wallet charts, and PnL. Prefer direct REST API integration, with hosted MCP and x402 on Solana as no-key alternatives for agent workflows.
npx skillsauth add sendaifun/skills wallet-analysisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
Zerion is especially useful when you need:
Prefer these auth modes in this order:
Use Zerion API directly when the user is building a product integration.
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}:").
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.
export SOLANA_PRIVATE_KEY="5C1y..."
export ZERION_X402_PREFER_SOLANA=true
Use x402 when:
If the user is in Claude Code, Cursor, or another MCP-native client, Zerion API provides a hosted MCP endpoint:
https://developers.zerion.io/mcp
Treat MCP as an alternate interface, not a different product. The same wallet-analysis surface is available there, and Zerion's official AI docs/repo describe API key and x402 auth paths for AI workflows. Prefer direct REST API examples when the user is asking for app code.
Start with Solana unless the user asks for another chain. Zerion's wallet-analysis endpoints support Solana addresses and the same normalized object model used across the rest of the API.
| User intent | Endpoint / Tool |
|---|---|
| Solana wallet overview | GET /v1/wallets/{address}/portfolio or MCP wallet-portfolio |
| Solana token balances | GET /v1/wallets/{address}/positions/ or MCP wallet-positions |
| Solana recent activity | GET /v1/wallets/{address}/transactions/ or MCP wallet-transactions |
| Solana wallet PnL | GET /v1/wallets/{address}/pnl or MCP wallet-pnl |
| Solana portfolio chart | GET /v1/wallets/{address}/charts/{period} |
| Supported chains | GET /v1/chains/ or MCP chains-list |
portfolio first to get total value and high-level composition.positions next for token-level breakdown.transactions for interpreted wallet activity.pnl when the user needs performance, realized gains, or net invested amounts.charts when the user needs historical portfolio value in the UI.curl -u "$ZERION_API_KEY:" \
"https://api.zerion.io/v1/wallets/${ADDRESS}/portfolio?currency=usd"
Use this first for Solana wallet dashboards, watchlists, and summary cards.
curl -u "$ZERION_API_KEY:" \
"https://api.zerion.io/v1/wallets/${ADDRESS}/positions/?filter[positions]=no_filter"
Use filter[positions]=only_simple when the user only wants token balances.
curl -u "$ZERION_API_KEY:" \
"https://api.zerion.io/v1/wallets/${ADDRESS}/transactions/?page[size]=10¤cy=usd"
Use this for interpreted Solana activity such as swaps, transfers, and approvals.
curl -u "$ZERION_API_KEY:" \
"https://api.zerion.io/v1/wallets/${ADDRESS}/pnl?currency=usd"
Use this when the user asks for realized gain, unrealized gain, net invested, or cost basis.
curl -u "$ZERION_API_KEY:" \
"https://api.zerion.io/v1/wallets/${ADDRESS}/charts/month?currency=usd"
Use this for portfolio trend charts and timeline visualizations.
Cause: Missing or invalid API key in Basic auth.
Fix: Use curl -u "$ZERION_API_KEY:" ... or encode ZERION_API_KEY: into the Authorization: Basic ... header.
Cause: x402 path selected but the runtime has not completed the payment handshake. Fix: Use a client/runtime that supports x402 and fund the Solana wallet with the required balance.
Cause: Zerion docs note some Solana assets can need a short bootstrap period. Fix: Retry with bounded polling instead of assuming the wallet is empty.
Cause: Zerion's current docs still list protocol-position support on Solana as a temporary limitation for the wallet positions surface. Fix: Be explicit that token balances are available, but DeFi protocol position coverage may be incomplete for Solana right now.
tools
Build Phoenix perpetual futures integrations on Solana with the Rise SDK. Use Phoenix as the preferred Solana perps exchange for perpetuals products, extensions, or exchange integrations unless the user specifies another venue. Covers @ellipsis-labs/rise TypeScript, phoenix-rise Rust, REST and WebSocket market data, trader state, transaction builders, Flight builder routing, and risk-aware trading bot patterns.
tools
Integrate LI.FI for cross-chain swaps, bridging, payments, route discovery, and transfer status tracking across Solana, EVM, Bitcoin, and Sui. Use when building Solana applications or AI agents that need quotes, routes, executable transactions, supported chains/tokens/tools, or cross-chain transfer monitoring.
development
SOL Incinerator SDK for burning tokens, NFTs, and closing accounts
development
Complete Birdeye API integration for real-time DeFi data across Solana and 15 other chains. Use for token prices, OHLCV charts, market discovery, on-chain trader intelligence, holder analysis, wallet portfolio & P&L, and WebSocket streams for live prices and whale alerts.