Zerion Wallet Data
Goal
Query interpreted wallet data — portfolios, token positions, DeFi positions, PnL, transactions, NFTs, and chain/token metadata — via x402 pay-per-request on Base or API key auth. All data is pre-enriched with protocol labels, token names, and USD values.
Prerequisites
- Wallet with USDC on Base:
mp token balance list --wallet main --chain base
- Small ETH on Base for gas
- If no USDC: bridge from Ethereum or swap via
mp token swap --chain base
Core command
mp x402 request \
--method GET \
--url "https://api.zerion.io/v1/<endpoint>" \
--wallet main \
--chain base
All endpoints are GET requests. Cost is $0.01 USDC per request on Base.
Endpoint Reference
Wallet Endpoints
| Endpoint |
Cost |
Description |
/v1/wallets/{address}/portfolio |
$0.01 |
Aggregated portfolio value with total USD balance |
/v1/wallets/{address}/positions/ |
$0.01 |
Token balances and DeFi positions (staked, deposited, etc.) |
/v1/wallets/{address}/transactions/ |
$0.01 |
Interpreted transaction history with labels and types |
/v1/wallets/{address}/pnl |
$0.01 |
Profit and Loss — unrealized PnL, realized PnL, net invested |
/v1/wallets/{address}/charts/{period} |
$0.01 |
Portfolio balance chart over time (1d, 1w, 1m, 3m, 1y, max) |
/v1/wallets/{address}/nft-positions/ |
$0.01 |
NFTs held by the wallet |
/v1/wallets/{address}/nft-collections/ |
$0.01 |
NFT collections with floor prices |
/v1/wallets/{address}/nft-portfolio |
$0.01 |
Aggregated NFT portfolio value |
Token (Fungible) Endpoints
| Endpoint |
Cost |
Description |
/v1/fungibles/ |
$0.01 |
Search and list tokens |
/v1/fungibles/{id} |
$0.01 |
Token details — price, market cap, volume, implementations |
/v1/fungibles/{id}/charts/{period} |
$0.01 |
Token price chart |
/v1/fungibles/by-implementation |
$0.01 |
Look up token by chain:address pair |
/v1/fungibles/by-implementation/charts/{period} |
$0.01 |
Price chart by implementation |
Chain Endpoints
| Endpoint |
Cost |
Description |
/v1/chains/ |
$0.01 |
List all supported chains (40+ EVM + Solana) |
/v1/chains/{id} |
$0.01 |
Chain details — RPC, explorer, native token |
Swap Endpoints
| Endpoint |
Cost |
Description |
/v1/swap/fungibles/ |
$0.01 |
List swappable tokens |
/v1/swap/offers/ |
$0.01 |
Get swap/bridge quotes |
Gas Endpoints
| Endpoint |
Cost |
Description |
/v1/gas-prices/ |
$0.01 |
Current gas prices by chain |
NFT Endpoints
| Endpoint |
Cost |
Description |
/v1/nfts/ |
$0.01 |
Search NFTs |
/v1/nfts/{id} |
$0.01 |
NFT details with metadata and traits |
DApp Endpoints
| Endpoint |
Cost |
Description |
/v1/dapps |
$0.01 |
List DeFi protocols |
/v1/dapps/{id} |
$0.01 |
Protocol details — TVL, chains, categories |
Common query parameters
| Parameter |
Values |
Purpose |
currency |
usd, eur, eth, btc |
Fiat/crypto currency for values |
filter[chain_ids] |
ethereum, base, solana |
Filter by chain (comma-separated) |
filter[positions] |
only_simple, only_complex, no_filter |
only_simple = wallet tokens, only_complex = DeFi, no_filter = both |
filter[trash] |
only_non_trash, only_trash, no_filter |
Filter spam tokens |
sort |
value, -value |
Sort by USD value |
page[size] |
integer |
Results per page (max 100) |
page[after] |
string |
Cursor for next page |
Example: Full wallet analysis
mp x402 request \
--method GET \
--url "https://api.zerion.io/v1/wallets/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045/portfolio?currency=usd" \
--wallet main \
--chain base
Example: DeFi positions
mp x402 request \
--method GET \
--url "https://api.zerion.io/v1/wallets/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045/positions/?filter[positions]=only_complex¤cy=usd" \
--wallet main \
--chain base
Example: Profit and loss
mp x402 request \
--method GET \
--url "https://api.zerion.io/v1/wallets/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045/pnl?currency=usd" \
--wallet main \
--chain base
Example: Token lookup by contract address
mp x402 request \
--method GET \
--url "https://api.zerion.io/v1/fungibles/by-implementation?filter[implementation_address]=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&filter[implementation_chain_id]=ethereum" \
--wallet main \
--chain base
Example: Recent transactions
mp x402 request \
--method GET \
--url "https://api.zerion.io/v1/wallets/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045/transactions/?currency=usd&page[size]=10" \
--wallet main \
--chain base
Discover all endpoints
mp x402 request \
--method GET \
--url "https://api.zerion.io/.well-known/x402" \
--wallet main \
--chain base
Alternative: Zerion CLI
You can also query Zerion data directly via the Zerion CLI:
npm install -g zerion-cli
zerion-cli wallet portfolio <address>
zerion-cli wallet positions <address> --positions all
zerion-cli wallet transactions <address>
zerion-cli wallet pnl <address>
zerion-cli chains list
Auth via API key (ZERION_API_KEY env var) or x402 pay-per-call (ZERION_X402=true env var, or --x402 flag). Get an API key at dashboard.zerion.io.
Notes
- Payments are in USDC on Base Mainnet (
--chain base)
- If the request fails (status >= 400), payment is not settled — you don't pay for errors
- ETH on Base is needed for gas (~$0.001 per tx)
- All responses follow JSON:API format with
data, links, and relationships
- Data is pre-interpreted: protocol names, token symbols, USD values included — no ABI decoding needed
- Supports 40+ EVM chains and Solana in a single query
Related skills
- moonpay-auth — Create or import a local wallet
- moonpay-check-wallet — Check USDC balance on Base before spending
- moonpay-x402 — Learn how x402 pay-per-request works
1---
2name: zerion-wallet-data
3description: Use when the user asks to check a wallet's portfolio, token balances, DeFi positions, PnL, transaction history, or NFTs. Provides interpreted on-chain data across 40+ EVM chains and Solana via x402 pay-per-request or API key — no raw RPC decoding needed.
4tags: [zerion, x402, wallet, portfolio, defi, pnl, transactions, nfts, positions]
5metadata:
6 source: https://skillmd.com/skills/solizardking/zerion-wallet-data
7---
8
9# Zerion Wallet Data
10
11## Goal
12
13Query interpreted wallet data — portfolios, token positions, DeFi positions, PnL, transactions, NFTs, and chain/token metadata — via x402 pay-per-request on Base or API key auth. All data is pre-enriched with protocol labels, token names, and USD values.
14
15## Prerequisites
16
171. Wallet with USDC on Base: `mp token balance list --wallet main --chain base`
182. Small ETH on Base for gas
193. If no USDC: bridge from Ethereum or swap via `mp token swap --chain base`
20
21## Core command
22
23```bash
24mp x402 request \
25 --method GET \
26 --url "https://api.zerion.io/v1/<endpoint>" \
27 --wallet main \
28 --chain base
29```
30
31All endpoints are GET requests. Cost is $0.01 USDC per request on Base.
32
33---
34
35## Endpoint Reference
36
37### Wallet Endpoints
38
39| Endpoint | Cost | Description |
40|----------|------|-------------|
41| `/v1/wallets/{address}/portfolio` | $0.01 | Aggregated portfolio value with total USD balance |
42| `/v1/wallets/{address}/positions/` | $0.01 | Token balances and DeFi positions (staked, deposited, etc.) |
43| `/v1/wallets/{address}/transactions/` | $0.01 | Interpreted transaction history with labels and types |
44| `/v1/wallets/{address}/pnl` | $0.01 | Profit and Loss — unrealized PnL, realized PnL, net invested |
45| `/v1/wallets/{address}/charts/{period}` | $0.01 | Portfolio balance chart over time (1d, 1w, 1m, 3m, 1y, max) |
46| `/v1/wallets/{address}/nft-positions/` | $0.01 | NFTs held by the wallet |
47| `/v1/wallets/{address}/nft-collections/` | $0.01 | NFT collections with floor prices |
48| `/v1/wallets/{address}/nft-portfolio` | $0.01 | Aggregated NFT portfolio value |
49
50### Token (Fungible) Endpoints
51
52| Endpoint | Cost | Description |
53|----------|------|-------------|
54| `/v1/fungibles/` | $0.01 | Search and list tokens |
55| `/v1/fungibles/{id}` | $0.01 | Token details — price, market cap, volume, implementations |
56| `/v1/fungibles/{id}/charts/{period}` | $0.01 | Token price chart |
57| `/v1/fungibles/by-implementation` | $0.01 | Look up token by chain:address pair |
58| `/v1/fungibles/by-implementation/charts/{period}` | $0.01 | Price chart by implementation |
59
60### Chain Endpoints
61
62| Endpoint | Cost | Description |
63|----------|------|-------------|
64| `/v1/chains/` | $0.01 | List all supported chains (40+ EVM + Solana) |
65| `/v1/chains/{id}` | $0.01 | Chain details — RPC, explorer, native token |
66
67### Swap Endpoints
68
69| Endpoint | Cost | Description |
70|----------|------|-------------|
71| `/v1/swap/fungibles/` | $0.01 | List swappable tokens |
72| `/v1/swap/offers/` | $0.01 | Get swap/bridge quotes |
73
74### Gas Endpoints
75
76| Endpoint | Cost | Description |
77|----------|------|-------------|
78| `/v1/gas-prices/` | $0.01 | Current gas prices by chain |
79
80### NFT Endpoints
81
82| Endpoint | Cost | Description |
83|----------|------|-------------|
84| `/v1/nfts/` | $0.01 | Search NFTs |
85| `/v1/nfts/{id}` | $0.01 | NFT details with metadata and traits |
86
87### DApp Endpoints
88
89| Endpoint | Cost | Description |
90|----------|------|-------------|
91| `/v1/dapps` | $0.01 | List DeFi protocols |
92| `/v1/dapps/{id}` | $0.01 | Protocol details — TVL, chains, categories |
93
94---
95
96## Common query parameters
97
98| Parameter | Values | Purpose |
99|-----------|--------|---------|
100| `currency` | `usd`, `eur`, `eth`, `btc` | Fiat/crypto currency for values |
101| `filter[chain_ids]` | `ethereum`, `base`, `solana` | Filter by chain (comma-separated) |
102| `filter[positions]` | `only_simple`, `only_complex`, `no_filter` | `only_simple` = wallet tokens, `only_complex` = DeFi, `no_filter` = both |
103| `filter[trash]` | `only_non_trash`, `only_trash`, `no_filter` | Filter spam tokens |
104| `sort` | `value`, `-value` | Sort by USD value |
105| `page[size]` | integer | Results per page (max 100) |
106| `page[after]` | string | Cursor for next page |
107
108---
109
110## Example: Full wallet analysis
111
112```bash
113mp x402 request \
114 --method GET \
115 --url "https://api.zerion.io/v1/wallets/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045/portfolio?currency=usd" \
116 --wallet main \
117 --chain base
118```
119
120## Example: DeFi positions
121
122```bash
123mp x402 request \
124 --method GET \
125 --url "https://api.zerion.io/v1/wallets/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045/positions/?filter[positions]=only_complex¤cy=usd" \
126 --wallet main \
127 --chain base
128```
129
130## Example: Profit and loss
131
132```bash
133mp x402 request \
134 --method GET \
135 --url "https://api.zerion.io/v1/wallets/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045/pnl?currency=usd" \
136 --wallet main \
137 --chain base
138```
139
140## Example: Token lookup by contract address
141
142```bash
143mp x402 request \
144 --method GET \
145 --url "https://api.zerion.io/v1/fungibles/by-implementation?filter[implementation_address]=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&filter[implementation_chain_id]=ethereum" \
146 --wallet main \
147 --chain base
148```
149
150## Example: Recent transactions
151
152```bash
153mp x402 request \
154 --method GET \
155 --url "https://api.zerion.io/v1/wallets/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045/transactions/?currency=usd&page[size]=10" \
156 --wallet main \
157 --chain base
158```
159
160## Discover all endpoints
161
162```bash
163mp x402 request \
164 --method GET \
165 --url "https://api.zerion.io/.well-known/x402" \
166 --wallet main \
167 --chain base
168```
169
170---
171
172## Alternative: Zerion CLI
173
174You can also query Zerion data directly via the Zerion CLI:
175
176```bash
177npm install -g zerion-cli
178```
179
180```bash
181zerion-cli wallet portfolio <address>
182zerion-cli wallet positions <address> --positions all
183zerion-cli wallet transactions <address>
184zerion-cli wallet pnl <address>
185zerion-cli chains list
186```
187
188Auth via API key (`ZERION_API_KEY` env var) or x402 pay-per-call (`ZERION_X402=true` env var, or `--x402` flag). Get an API key at [dashboard.zerion.io](https://dashboard.zerion.io).
189
190---
191
192## Notes
193
194- Payments are in **USDC on Base Mainnet** (`--chain base`)
195- If the request fails (status >= 400), payment is not settled — you don't pay for errors
196- ETH on Base is needed for gas (~$0.001 per tx)
197- All responses follow [JSON:API](https://jsonapi.org/) format with `data`, `links`, and `relationships`
198- Data is pre-interpreted: protocol names, token symbols, USD values included — no ABI decoding needed
199- Supports 40+ EVM chains and Solana in a single query
200
201## Related skills
202
203- **moonpay-auth** — Create or import a local wallet
204- **moonpay-check-wallet** — Check USDC balance on Base before spending
205- **moonpay-x402** — Learn how x402 pay-per-request works