wallet-analysis
FreeNo executable scriptsNot checkedAnalyze Solana wallets and multichain portfolios with Zerion API. Use for Solana portfolio value, token positions, transaction history, wallet charts, and…
by sendaifun★ 129 GitHub starsAbout this skill
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.
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.
export SOLANA_PRIVATE_KEY="5C1y..."
export ZERION_X402_PREFER_SOLANA=true
Use x402 when:
- the user explicitly wants no API key
- the environment already supports x402
- the workflow is agentic and Solana-funded
3. Hosted MCP for agent-native environments
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.
Routing
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 |
Solana-First Workflow
- Confirm the wallet address is Solana if the user is building for Solana.
- Fetch
portfoliofirst to get total value and high-level composition. - Fetch
positionsnext for token-level breakdown. - Fetch
transactionsfor interpreted wallet activity. - Fetch
pnlwhen the user needs performance, realized gains, or net invested amounts. - Add
chartswhen the user needs historical portfolio value in the UI. - Only expand to EVM or multichain filters if the user's request actually needs them.
API Patterns
Portfolio
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.
Positions
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.
Transactions
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.
PnL
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.
Charts
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.
Guidelines
- Prefer Zerion API for implementation examples in app code.
- Use Solana wallet examples in prompts, code, and explanations whenever possible.
- Use Zerion MCP when the user wants agent-native querying in Claude Code, Cursor, or VS Code.
- Make x402 a first-class fallback, especially when the user wants a Solana-funded no-key setup.
- Keep Basic auth examples accurate: API key as username, empty password.
- Do not tell the user to build chain-specific p
Install wallet-analysis in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the wallet-analysis skill do?
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.
How do I install the wallet-analysis skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the wallet-analysis skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic