[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75M2BWVSFXG2Z7FXH2YJZV2":3,"skill-same:01M75M2BWVSFXG2Z7FXH2YJZV2":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M75M2BWVSFXG2Z7FXH2YJZV2","zerion",null,"Interpreted crypto wallet data for AI agents. Use when an agent needs portfolio values, token positions, DeFi positions, NFT holdings, transaction history, PnL data, token prices, charts, gas prices, swap quotes, or DApp information across 41+ chains. Zerion transforms raw blockchain data into agent-ready JSON with USD values, protocol labels, and enriched metadata. Supports x402 pay-per-request ($0.01 USDC on Base) and API key access. Triggers on mentions of portfolio, wallet analysis, positions, transactions, PnL, profit\u002Floss, DeFi, token balances, NFTs, swap quotes, gas prices, or Zerion.","dnzengou\u002Fagentbot-opensource","dnzengou","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7807581?v=4","01M75KKJA3F5ZP7CA10MB2AEXC","01M75KKJATR2PAMG44B6ZB5CPD",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fagentbot-opensource\u002Fblob\u002Fmain\u002Fskills\u002Fzerion\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: zerion\ndescription: Interpreted crypto wallet data for AI agents. Use when an agent needs portfolio values, token positions, DeFi positions, NFT holdings, transaction history, PnL data, token prices, charts, gas prices, swap quotes, or DApp information across 41+ chains. Zerion transforms raw blockchain data into agent-ready JSON with USD values, protocol labels, and enriched metadata. Supports x402 pay-per-request ($0.01 USDC on Base) and API key access. Triggers on mentions of portfolio, wallet analysis, positions, transactions, PnL, profit\u002Floss, DeFi, token balances, NFTs, swap quotes, gas prices, or Zerion.\n---\n\n# Zerion: Wallet Intelligence for AI Agents\n\nZerion provides interpreted, enriched crypto wallet data across 41+ chains including Ethereum, Base, Arbitrum, Optimism, Polygon, Solana, and more.\n\nUnlike raw RPC data, Zerion returns:\n- **USD values** for all positions\n- **Protocol labels** (Uniswap, Aave, Lido, etc.)\n- **Human-readable transaction types** (swap, stake, bridge, mint, burn)\n- **PnL calculations** (realized, unrealized, per-asset, FIFO method)\n- **DeFi position breakdowns** (deposits, borrows, LP positions with `group_id`)\n- **NFT portfolios** with floor prices and collection metadata\n- **Spam filtering** built-in\n\nTwo ways to access:\n\n- **x402 (no account needed)**: Pay $0.01 USDC per request on Base. No API key, no signup.\n- **API key**: Get a free key instantly at [dashboard.zerion.io](https:\u002F\u002Fdashboard.zerion.io) for higher rate limits.\n\n## Research → Execute Pattern\n\nZerion is the **research layer**. Use it to analyze wallets, find opportunities, track PnL. Then hand off to Bankr for **execution** (swaps, stop-losses, DCA).\n\n```\nZerion (Research)          Bankr (Execute)\n─────────────────         ────────────────\nPortfolio analysis   →    Rebalance trades\nPnL tracking         →    Stop-loss orders\nPosition monitoring  →    Take-profit orders\nWhale watching       →    Copy trades\nSwap quotes          →    Execute best route\nNFT floor tracking   →    Buy\u002Fsell NFTs\n```\n\n## CLI Quick Start\n\n```bash\nnpm install -g zerion-cli\n\n# Set API key\nexport ZERION_API_KEY=\"zk_...\"\n\n# Or use x402 (no key needed)\nzerion-cli wallet portfolio 0x... --x402\n\n# Commands\nzerion-cli wallet portfolio \u003Caddress>      # Total USD value\nzerion-cli wallet positions \u003Caddress>      # All token positions\nzerion-cli wallet transactions \u003Caddress>   # Transaction history\nzerion-cli wallet pnl \u003Caddress>            # Profit & loss\nzerion-cli wallet analyze \u003Caddress>        # Full analysis\nzerion-cli chains list                     # Supported chains\n```\n\n---\n\n## Wallet Endpoints\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Fportfolio\n\nReturns aggregated portfolio value across all chains.\n\n```bash\ncurl \"https:\u002F\u002Fapi.zerion.io\u002Fv1\u002Fwallets\u002F0x...\u002Fportfolio?currency=usd\" \\\n  -H \"Authorization: Basic $(echo -n $ZERION_API_KEY: | base64)\"\n```\n\nResponse:\n```json\n{\n  \"data\": {\n    \"attributes\": {\n      \"total\": { \"positions\": 44469.60 },\n      \"positions_distribution_by_type\": {\n        \"wallet\": 40000,\n        \"deposited\": 3000,\n        \"staked\": 1469.60\n      },\n      \"positions_distribution_by_chain\": {\n        \"base\": 27495.06,\n        \"ethereum\": 6216.25,\n        \"arbitrum\": 1234.56\n      },\n      \"changes\": {\n        \"absolute_1d\": 305.86,\n        \"percent_1d\": 0.69\n      }\n    }\n  }\n}\n```\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Fpositions\n\nReturns all fungible token and DeFi positions.\n\nQuery params:\n- `filter[positions]`: `only_simple` (tokens only), `only_defi` (protocol positions), `no_filter` (all)\n- `filter[chain_ids]`: Comma-separated chain IDs (e.g., `base,ethereum,arbitrum`)\n- `filter[trash]`: `only_non_trash` (exclude spam), `only_trash`, `no_filter`\n- `sort`: `value` or `-value`\n\n**Understanding LP Positions**: Liquidity pools return multiple positions (one per token) with shared `group_id`. Group by `group_id` to display LP holdings together.\n\nResponse includes:\n- Token symbol, name, icon URL\n- Quantity (int, float, decimals, numeric)\n- USD value and price\n- Position type: `wallet`, `deposited`, `borrowed`, `staked`, `locked`\n- Protocol name and DApp relationship\n- `group_id` for LP position grouping\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Ftransactions\n\nReturns interpreted transaction history.\n\nQuery params:\n- `filter[chain_ids]`: Filter by chains\n- `filter[asset_types]`: `fungible`, `nft`\n- `filter[trash]`: `only_non_trash`, `no_filter`\n- `page[size]`: Results per page (default 20)\n- `page[after]`: Cursor for pagination\n\nEach transaction includes:\n- `operation_type`: `trade`, `send`, `receive`, `approve`, `stake`, `unstake`, `borrow`, `repay`, `bridge`, `mint`, `burn`, `bid`, `execute`\n- `transfers` array with direction, token info, quantities, USD values\n- `fee` with gas cost in native token and USD\n- `application_metadata` with contract address and method info\n- Related `dapp` and `chain` relationships\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Fpnl\n\nReturns Profit and Loss using FIFO method.\n\nQuery params:\n- `currency`: `usd` (default)\n- `filter[chain_ids]`: Comma-separated chain IDs\n\nResponse:\n```json\n{\n  \"data\": {\n    \"attributes\": {\n      \"total_gain\": -15076.15,\n      \"realized_gain\": 45328.28,\n      \"unrealized_gain\": -60404.44,\n      \"relative_total_gain_percentage\": -5.65,\n      \"relative_realized_gain_percentage\": 28.08,\n      \"relative_unrealized_gain_percentage\": -57.36,\n      \"total_fee\": 681.81,\n      \"total_invested\": 266672.34,\n      \"realized_cost_basis\": 161370.01,\n      \"net_invested\": 105302.33,\n      \"received_external\": 128217.01,\n      \"sent_external\": 67415.77,\n      \"sent_for_nfts\": 4333.36,\n      \"received_for_nfts\": 423.01\n    }\n  }\n}\n```\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Fchart\n\nReturns portfolio balance chart over time.\n\nQuery params:\n- `currency`: `usd`\n- `filter[chain_ids]`: Filter by chains\n- `period`: Time period for chart\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Fnft-portfolio\n\nReturns NFT portfolio overview with total estimated value.\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Fnft-positions\n\nReturns list of NFT positions held by wallet.\n\nQuery params:\n- `filter[chain_ids]`: Filter by chains\n- `sort`: Sort order\n- Pagination supported\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Fnft-collections\n\nReturns NFT collections held by wallet with floor prices.\n\n---\n\n## Fungibles (Token) Endpoints\n\n### GET \u002Fv1\u002Ffungibles\n\nReturns paginated list of fungible assets. Supports search.\n\nQuery params:\n- `filter[search_query]`: Search by name or symbol\n- `filter[implementation_chain_id]`: Filter by chain\n- `filter[implementation_address]`: Filter by contract address\n- `sort`: Sort order\n\n### GET \u002Fv1\u002Ffungibles\u002F{fungible_id}\n\nReturns single fungible asset by ID.\n\n### GET \u002Fv1\u002Ffungibles\u002Fimplementation\u002F{chain}:{address}\n\nReturns fungible by chain:address pair (e.g., `ethereum:0xa5a4...`).\n\n### GET \u002Fv1\u002Ffungibles\u002F{fungible_id}\u002Fchart\n\nReturns price chart for fungible asset.\n\nQuery params:\n- `filter[period]`: `hour`, `day`, `week`, `month`, `year`, `max`\n\n---\n\n## NFT Endpoints\n\n### GET \u002Fv1\u002Fnfts\n\nReturns list of NFTs with metadata.\n\nQuery params:\n- Filter and pagination supported\n\n### GET \u002Fv1\u002Fnfts\u002F{nft_id}\n\nReturns single NFT by ID with full metadata, traits, and collection info.\n\n---\n\n## DApp Endpoints\n\n### GET \u002Fv1\u002Fdapps\n\nReturns list of DApps (protocols) indexed by Zerion.\n\n### GET \u002Fv1\u002Fdapps\u002F{dapp_id}\n\nReturns single DApp with metadata, supported chains, and categories.\n\n---\n\n## Chain Endpoints\n\n### GET \u002Fv1\u002Fchains\n\nReturns all 41+ supported chains with metadata.\n\n### GET \u002Fv1\u002Fchains\u002F{chain_id}\n\nReturns single chain by ID.\n\n---\n\n## Gas Prices\n\n### GET \u002Fv1\u002Fgas-prices\n\nReturns real-time gas prices across all supported chains.\n\nUseful for:\n- Estimating transaction costs\n- Choosing optimal chain for execution\n- Timing transactions for lower fees\n\n---\n\n## Swap & Bridge Quotes\n\n### GET \u002Fv1\u002Fswap\u002Foffers\n\nReturns swap\u002Fbridge quotes from multiple providers (aggregator).\n\nQuery params:\n- Input\u002Foutput tokens\n- Amount\n- Slippage tolerance\n\nReturns quotes from 0x, 1inch, Uniswap, and more. Zerion charges 0.5% on L2\u002Falt-L1 trades (waived with Genesis NFT).\n\n**Note**: Response time is 5-10 seconds due to multi-provider aggregation.\n\n### GET \u002Fv1\u002Fswap\u002Ffungibles\n\nReturns fungibles available for bridge exchange (cross-chain swaps).\n\n---\n\n## Webhooks (Subscriptions)\n\nReal-time notifications for wallet activity.\n\n### POST \u002Fv1\u002Fsubscriptions\u002Fwallet-transactions\n\nCreate subscription for wallet transactions.\n\n```json\n{\n  \"data\": {\n    \"type\": \"subscriptions\",\n    \"attributes\": {\n      \"wallet_addresses\": [\"0x...\", \"0x...\"],\n      \"chain_ids\": [\"base\", \"ethereum\"],\n      \"callback_url\": \"https:\u002F\u002Fyour-server\u002Fwebhook\"\n    }\n  }\n}\n```\n\n### GET \u002Fv1\u002Fsubscriptions\n\nList all subscriptions.\n\n### GET \u002Fv1\u002Fsubscriptions\u002F{id}\n\nGet subscription by ID.\n\n### DELETE \u002Fv1\u002Fsubscriptions\u002F{id}\n\nDelete subscription.\n\n### POST \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fenable\n\nEnable a disabled subscription.\n\n### POST \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fdisable\n\nDisable subscription (pause notifications).\n\n### PATCH \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fwallets\n\nAdd\u002Fremove wallets from subscription.\n\n### PUT \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fwallets\n\nReplace all wallets in subscription.\n\n### PUT \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fcallback-url\n\nUpdate callback URL.\n\n### PUT \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fchain-ids\n\nUpdate monitored chains.\n\n### GET \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fwallets\n\nList wallets in subscription.\n\n### GET \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fwallets\u002Fcount\n\nCount wallets in subscription.\n\n**Webhook Payload**:\n- Signed with X-Signature header (RSA, verify with certificate)\n- Includes X-Timestamp and X-Certificate-URL headers\n- Transaction data with full interpretation\n- Prices are `null` in webhooks (query transactions endpoint for prices)\n\n**Limits**:\n- Dev key: 1 subscription, 5 wallets max\n- Production: Contact api@zerion.io for whitelist\n\n---\n\n## API Key Access\n\nGet a free API key instantly — no credit card required:\n\n1. Go to [dashboard.zerion.io](https:\u002F\u002Fdashboard.zerion.io)\n2. Sign up with email or connect wallet\n3. Click \"Create API Key\" — key starts with `zk_...`\n4. Copy and use immediately\n\n```bash\nexport ZERION_API_KEY=\"zk_your_api_key\"\n\ncurl \"https:\u002F\u002Fapi.zerion.io\u002Fv1\u002Fwallets\u002F0x...\u002Fportfolio\" \\\n  -H \"Authorization: Basic $(echo -n $ZERION_API_KEY: | base64)\"\n```\n\n### Rate Limits\n\n| Plan | Requests\u002FSecond | Requests\u002FDay | Price |\n|------|-----------------|--------------|-------|\n| Free | 10 | 10,000 | $0 |\n| Growth | 50 | 100,000 | $99\u002Fmo |\n| Scale | 200 | 1,000,000 | $499\u002Fmo |\n| Enterprise | Custom | Custom | Contact |\n\nx402 has no rate limits — pay per request ($0.01 USDC each).\n\n---\n\n## x402 Access (Recommended for Agents)\n\nx402 allows agents to pay per request without API keys. Payment is $0.01 USDC on Base.\n\n```typescript\n\u002F\u002F Using x402 HTTP flow\nconst response = await fetch('https:\u002F\u002Fapi.zerion.io\u002Fv1\u002Fwallets\u002F0x...\u002Fportfolio', {\n  headers: {\n    'X-402-Payment': signedPaymentHeader \u002F\u002F ERC-3009 signature\n  }\n});\n```\n\nWith zerion-cli:\n```bash\nzerion-cli wallet portfolio 0x... --x402\n```\n\n---\n\n## Testnet Support\n\nAdd `X-Env: testnet` header to get testnet data:\n\n```bash\ncurl \"https:\u002F\u002Fapi.zerion.io\u002Fv1\u002Fwallets\u002F0x...\u002Fportfolio\" \\\n  -H \"Authorization: Basic ...\" \\\n  -H \"X-Env: testnet\"\n```\n\n---\n\n## Integration with Bankr\n\n### Example: PnL Guardian\n\nMonitor positions and auto-set stop-losses:\n\n```bash\n#!\u002Fbin\u002Fbash\n# Research with Zerion\npositions=$(zerion-cli wallet positions $WALLET --json)\n\n# Find volatile tokens on Base\nrisky=$(echo $positions | jq '[.data[] | select(.relationships.chain.data.id == \"base\") | select(.attributes.value > 500)]')\n\n# Execute with Bankr\nfor token in $(echo $risky | jq -r '.[].attributes.fungible_info.symbol'); do\n  bankr \"set stop loss on $token at -20%\"\ndone\n```\n\n### Example: Whale Copy Trading\n\nWatch a whale wallet and mirror trades:\n\n```typescript\n\u002F\u002F Webhook handler\napp.post('\u002Fwebhook\u002Fzerion', async (req, res) => {\n  const { type, data } = req.body;\n\n  if (type === 'transaction' && data.operation_type === 'trade') {\n    const { transfers } = data;\n    const bought = transfers.find(t => t.direction === 'in');\n\n    if (bought && bought.value > 1000) {\n      \u002F\u002F Mirror the trade via Bankr\n      await bankr(`buy $100 of ${bought.fungible_info.symbol}`);\n    }\n  }\n});\n```\n\n### Example: Best Swap Route\n\nGet quotes from Zerion, execute via Bankr:\n\n```typescript\n\u002F\u002F Get swap quote from Zerion\nconst quote = await zerion.get('\u002Fv1\u002Fswap\u002Foffers', {\n  params: { from: 'USDC', to: 'ETH', amount: '1000' }\n});\n\nconst bestRate = quote.data[0];\nconsole.log(`Best rate: ${bestRate.rate} from ${bestRate.provider}`);\n\n\u002F\u002F Execute via Bankr\nawait bankr(`swap $1000 USDC to ETH on base`);\n```\n\n---\n\n## Supported Chains\n\nAll 41+ chains including:\n\n| Chain | Chain ID |\n|-------|----------|\n| Ethereum | `ethereum` |\n| Base | `base` |\n| Arbitrum | `arbitrum` |\n| Optimism | `optimism` |\n| Polygon | `polygon` |\n| Solana | `solana` |\n| zkSync Era | `zksync-era` |\n| Linea | `linea` |\n| Scroll | `scroll` |\n| Blast | `blast` |\n| Zora | `zora` |\n| Degen | `degen` |\n| Berachain | `berachain` |\n| Monad | `monad` |\n| Abstract | `abstract` |\n| ... | +26 more |\n\nFull list: https:\u002F\u002Fdevelopers.zerion.io\u002Freference\u002Fsupported-blockchains\n\n---\n\n## MCP Server\n\nConnect Claude, Cursor, or any MCP client:\n\n```json\n{\n  \"mcpServers\": {\n    \"zerion\": {\n      \"command\": \"npx\",\n      \"args\": [\"zerion-mcp-server\"],\n      \"env\": {\n        \"ZERION_API_KEY\": \"zk_...\"\n      }\n    }\n  }\n}\n```\n\n---\n\n## Error Handling\n\n| Code | Description |\n|------|-------------|\n| 200 | Success |\n| 202 | Accepted - data being prepared, retry shortly |\n| 400 | Bad Request - check query params |\n| 401 | Unauthorized - invalid API key |\n| 402 | Payment Required - x402 payment needed |\n| 404 | Not Found - invalid address or resource |\n| 429 | Rate Limited - back off with exponential backoff |\n| 500 | Server Error - retry with backoff |\n\n**Note**: 202 responses mean data is being indexed. Retry every few seconds until 200. Stop after 2 minutes if still 202.\n\n---\n\n## Resources\n\n- **Get API Key**: https:\u002F\u002Fdashboard.zerion.io (free, instant, no credit card)\n- **API Documentation**: https:\u002F\u002Fdevelopers.zerion.io\n- **Supported Chains**: https:\u002F\u002Fdevelopers.zerion.io\u002Freference\u002Fsupported-blockchains\n- **CLI Repository**: https:\u002F\u002Fgithub.com\u002Fzeriontech\u002Fzerion-cli\n- **MCP Server**: https:\u002F\u002Fgithub.com\u002Fzeriontech\u002Fzerion-mcp-server\n- **x402 Protocol**: https:\u002F\u002Fdevelopers.zerion.io\u002Freference\u002Fx402\n- **Zerion for Agents**: https:\u002F\u002Fzerion.io\u002Fagents\n- **Spam Filtering**: https:\u002F\u002Fdevelopers.zerion.io\u002Freference\u002Ftoken-spam-filtering\n- **FAQs**: https:\u002F\u002Fdevelopers.zerion.io\u002Freference\u002Ffaqs\n","# Zerion: Wallet Intelligence for AI Agents\n\nZerion provides interpreted, enriched crypto wallet data across 41+ chains including Ethereum, Base, Arbitrum, Optimism, Polygon, Solana, and more.\n\nUnlike raw RPC data, Zerion returns:\n- **USD values** for all positions\n- **Protocol labels** (Uniswap, Aave, Lido, etc.)\n- **Human-readable transaction types** (swap, stake, bridge, mint, burn)\n- **PnL calculations** (realized, unrealized, per-asset, FIFO method)\n- **DeFi position breakdowns** (deposits, borrows, LP positions with `group_id`)\n- **NFT portfolios** with floor prices and collection metadata\n- **Spam filtering** built-in\n\nTwo ways to access:\n\n- **x402 (no account needed)**: Pay $0.01 USDC per request on Base. No API key, no signup.\n- **API key**: Get a free key instantly at [dashboard.zerion.io](https:\u002F\u002Fdashboard.zerion.io) for higher rate limits.\n\n## Research → Execute Pattern\n\nZerion is the **research layer**. Use it to analyze wallets, find opportunities, track PnL. Then hand off to Bankr for **execution** (swaps, stop-losses, DCA).\n\n```\nZerion (Research)          Bankr (Execute)\n─────────────────         ────────────────\nPortfolio analysis   →    Rebalance trades\nPnL tracking         →    Stop-loss orders\nPosition monitoring  →    Take-profit orders\nWhale watching       →    Copy trades\nSwap quotes          →    Execute best route\nNFT floor tracking   →    Buy\u002Fsell NFTs\n```\n\n## CLI Quick Start\n\n```bash\nnpm install -g zerion-cli\n\n# Set API key\nexport ZERION_API_KEY=\"zk_...\"\n\n# Or use x402 (no key needed)\nzerion-cli wallet portfolio 0x... --x402\n\n# Commands\nzerion-cli wallet portfolio \u003Caddress>      # Total USD value\nzerion-cli wallet positions \u003Caddress>      # All token positions\nzerion-cli wallet transactions \u003Caddress>   # Transaction history\nzerion-cli wallet pnl \u003Caddress>            # Profit & loss\nzerion-cli wallet analyze \u003Caddress>        # Full analysis\nzerion-cli chains list                     # Supported chains\n```\n\n---\n\n## Wallet Endpoints\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Fportfolio\n\nReturns aggregated portfolio value across all chains.\n\n```bash\ncurl \"https:\u002F\u002Fapi.zerion.io\u002Fv1\u002Fwallets\u002F0x...\u002Fportfolio?currency=usd\" \\\n  -H \"Authorization: Basic $(echo -n $ZERION_API_KEY: | base64)\"\n```\n\nResponse:\n```json\n{\n  \"data\": {\n    \"attributes\": {\n      \"total\": { \"positions\": 44469.60 },\n      \"positions_distribution_by_type\": {\n        \"wallet\": 40000,\n        \"deposited\": 3000,\n        \"staked\": 1469.60\n      },\n      \"positions_distribution_by_chain\": {\n        \"base\": 27495.06,\n        \"ethereum\": 6216.25,\n        \"arbitrum\": 1234.56\n      },\n      \"changes\": {\n        \"absolute_1d\": 305.86,\n        \"percent_1d\": 0.69\n      }\n    }\n  }\n}\n```\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Fpositions\n\nReturns all fungible token and DeFi positions.\n\nQuery params:\n- `filter[positions]`: `only_simple` (tokens only), `only_defi` (protocol positions), `no_filter` (all)\n- `filter[chain_ids]`: Comma-separated chain IDs (e.g., `base,ethereum,arbitrum`)\n- `filter[trash]`: `only_non_trash` (exclude spam), `only_trash`, `no_filter`\n- `sort`: `value` or `-value`\n\n**Understanding LP Positions**: Liquidity pools return multiple positions (one per token) with shared `group_id`. Group by `group_id` to display LP holdings together.\n\nResponse includes:\n- Token symbol, name, icon URL\n- Quantity (int, float, decimals, numeric)\n- USD value and price\n- Position type: `wallet`, `deposited`, `borrowed`, `staked`, `locked`\n- Protocol name and DApp relationship\n- `group_id` for LP position grouping\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Ftransactions\n\nReturns interpreted transaction history.\n\nQuery params:\n- `filter[chain_ids]`: Filter by chains\n- `filter[asset_types]`: `fungible`, `nft`\n- `filter[trash]`: `only_non_trash`, `no_filter`\n- `page[size]`: Results per page (default 20)\n- `page[after]`: Cursor for pagination\n\nEach transaction includes:\n- `operation_type`: `trade`, `send`, `receive`, `approve`, `stake`, `unstake`, `borrow`, `repay`, `bridge`, `mint`, `burn`, `bid`, `execute`\n- `transfers` array with direction, token info, quantities, USD values\n- `fee` with gas cost in native token and USD\n- `application_metadata` with contract address and method info\n- Related `dapp` and `chain` relationships\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Fpnl\n\nReturns Profit and Loss using FIFO method.\n\nQuery params:\n- `currency`: `usd` (default)\n- `filter[chain_ids]`: Comma-separated chain IDs\n\nResponse:\n```json\n{\n  \"data\": {\n    \"attributes\": {\n      \"total_gain\": -15076.15,\n      \"realized_gain\": 45328.28,\n      \"unrealized_gain\": -60404.44,\n      \"relative_total_gain_percentage\": -5.65,\n      \"relative_realized_gain_percentage\": 28.08,\n      \"relative_unrealized_gain_percentage\": -57.36,\n      \"total_fee\": 681.81,\n      \"total_invested\": 266672.34,\n      \"realized_cost_basis\": 161370.01,\n      \"net_invested\": 105302.33,\n      \"received_external\": 128217.01,\n      \"sent_external\": 67415.77,\n      \"sent_for_nfts\": 4333.36,\n      \"received_for_nfts\": 423.01\n    }\n  }\n}\n```\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Fchart\n\nReturns portfolio balance chart over time.\n\nQuery params:\n- `currency`: `usd`\n- `filter[chain_ids]`: Filter by chains\n- `period`: Time period for chart\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Fnft-portfolio\n\nReturns NFT portfolio overview with total estimated value.\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Fnft-positions\n\nReturns list of NFT positions held by wallet.\n\nQuery params:\n- `filter[chain_ids]`: Filter by chains\n- `sort`: Sort order\n- Pagination supported\n\n### GET \u002Fv1\u002Fwallets\u002F{address}\u002Fnft-collections\n\nReturns NFT collections held by wallet with floor prices.\n\n---\n\n## Fungibles (Token) Endpoints\n\n### GET \u002Fv1\u002Ffungibles\n\nReturns paginated list of fungible assets. Supports search.\n\nQuery params:\n- `filter[search_query]`: Search by name or symbol\n- `filter[implementation_chain_id]`: Filter by chain\n- `filter[implementation_address]`: Filter by contract address\n- `sort`: Sort order\n\n### GET \u002Fv1\u002Ffungibles\u002F{fungible_id}\n\nReturns single fungible asset by ID.\n\n### GET \u002Fv1\u002Ffungibles\u002Fimplementation\u002F{chain}:{address}\n\nReturns fungible by chain:address pair (e.g., `ethereum:0xa5a4...`).\n\n### GET \u002Fv1\u002Ffungibles\u002F{fungible_id}\u002Fchart\n\nReturns price chart for fungible asset.\n\nQuery params:\n- `filter[period]`: `hour`, `day`, `week`, `month`, `year`, `max`\n\n---\n\n## NFT Endpoints\n\n### GET \u002Fv1\u002Fnfts\n\nReturns list of NFTs with metadata.\n\nQuery params:\n- Filter and pagination supported\n\n### GET \u002Fv1\u002Fnfts\u002F{nft_id}\n\nReturns single NFT by ID with full metadata, traits, and collection info.\n\n---\n\n## DApp Endpoints\n\n### GET \u002Fv1\u002Fdapps\n\nReturns list of DApps (protocols) indexed by Zerion.\n\n### GET \u002Fv1\u002Fdapps\u002F{dapp_id}\n\nReturns single DApp with metadata, supported chains, and categories.\n\n---\n\n## Chain Endpoints\n\n### GET \u002Fv1\u002Fchains\n\nReturns all 41+ supported chains with metadata.\n\n### GET \u002Fv1\u002Fchains\u002F{chain_id}\n\nReturns single chain by ID.\n\n---\n\n## Gas Prices\n\n### GET \u002Fv1\u002Fgas-prices\n\nReturns real-time gas prices across all supported chains.\n\nUseful for:\n- Estimating transaction costs\n- Choosing optimal chain for execution\n- Timing transactions for lower fees\n\n---\n\n## Swap & Bridge Quotes\n\n### GET \u002Fv1\u002Fswap\u002Foffers\n\nReturns swap\u002Fbridge quotes from multiple providers (aggregator).\n\nQuery params:\n- Input\u002Foutput tokens\n- Amount\n- Slippage tolerance\n\nReturns quotes from 0x, 1inch, Uniswap, and more. Zerion charges 0.5% on L2\u002Falt-L1 trades (waived with Genesis NFT).\n\n**Note**: Response time is 5-10 seconds due to multi-provider aggregation.\n\n### GET \u002Fv1\u002Fswap\u002Ffungibles\n\nReturns fungibles available for bridge exchange (cross-chain swaps).\n\n---\n\n## Webhooks (Subscriptions)\n\nReal-time notifications for wallet activity.\n\n### POST \u002Fv1\u002Fsubscriptions\u002Fwallet-transactions\n\nCreate subscription for wallet transactions.\n\n```json\n{\n  \"data\": {\n    \"type\": \"subscriptions\",\n    \"attributes\": {\n      \"wallet_addresses\": [\"0x...\", \"0x...\"],\n      \"chain_ids\": [\"base\", \"ethereum\"],\n      \"callback_url\": \"https:\u002F\u002Fyour-server\u002Fwebhook\"\n    }\n  }\n}\n```\n\n### GET \u002Fv1\u002Fsubscriptions\n\nList all subscriptions.\n\n### GET \u002Fv1\u002Fsubscriptions\u002F{id}\n\nGet subscription by ID.\n\n### DELETE \u002Fv1\u002Fsubscriptions\u002F{id}\n\nDelete subscription.\n\n### POST \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fenable\n\nEnable a disabled subscription.\n\n### POST \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fdisable\n\nDisable subscription (pause notifications).\n\n### PATCH \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fwallets\n\nAdd\u002Fremove wallets from subscription.\n\n### PUT \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fwallets\n\nReplace all wallets in subscription.\n\n### PUT \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fcallback-url\n\nUpdate callback URL.\n\n### PUT \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fchain-ids\n\nUpdate monitored chains.\n\n### GET \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fwallets\n\nList wallets in subscription.\n\n### GET \u002Fv1\u002Fsubscriptions\u002F{id}\u002Fwallets\u002Fcount\n\nCount wallets in subscription.\n\n**Webhook Payload**:\n- Signed with X-Signature header (RSA, verify with certificate)\n- Includes X-Timestamp and X-Certificate-URL headers\n- Transaction data with full interpretation\n- Prices are `null` in webhooks (query transactions endpoint for prices)\n\n**Limits**:\n- Dev key: 1 subscription, 5 wallets max\n- Production: Contact api@zerion.io for whitelist\n\n---\n\n## API Key Access\n\nGet a free API key instantly — no credit card required:\n\n1. Go to [dashboard.zerion.io](https:\u002F\u002Fdashboard.zerion.io)\n2. Sign up with email or connect wallet\n3. Click \"Create API Key\" — key starts with `zk_...`\n4. Copy and use immediately\n\n```bash\nexport ZERION_API_KEY=\"zk_your_api_key\"\n\ncurl \"https:\u002F\u002Fapi.zerion.io\u002Fv1\u002Fwallets\u002F0x...\u002Fportfolio\" \\\n  -H \"Authorization: Basic $(echo -n $ZERION_API_KEY: | base64)\"\n```\n\n### Rate Limits\n\n| Plan | Requests\u002FSecond | Requests\u002FDay | Price |\n|------|-----------------|--------------|-------|\n| Free | 10 | 10,000 | $0 |\n| Growth | 50 | 100,000 | $99\u002Fmo |\n| Scale | 200 | 1,000,000 | $499\u002Fmo |\n| Enterprise | Custom | Custom | Contact |\n\nx402 has no rate limits — pay per request ($0.01 USDC each).\n\n---\n\n## x402 Access (Recommended for Agents)\n\nx402 allows agents to pay per request without API keys. Payment is $0.01 USDC on Base.\n\n```typescript\n\u002F\u002F Using x402 HTTP flow\nconst response = await fetch('https:\u002F\u002Fapi.zerion.io\u002Fv1\u002Fwallets\u002F0x...\u002Fportfolio', {\n  headers: {\n    'X-402-Payment': signedPaymentHeader \u002F\u002F ERC-3009 signature\n  }\n});\n```\n\nWith zerion-cli:\n```bash\nzerion-cli wallet portfolio 0x... --x402\n```\n\n---\n\n## Testnet Support\n\nAdd `X-Env: testnet` header to get testnet data:\n\n```bash\ncurl \"https:\u002F\u002Fapi.zerion.io\u002Fv1\u002Fwallets\u002F0x...\u002Fportfolio\" \\\n  -H \"Authorization: Basic ...\" \\\n  -H \"X-Env: testnet\"\n```\n\n---\n\n## Integration with Bankr\n\n### Example: PnL Guardian\n\nMonitor positions and auto-set stop-losses:\n\n```bash\n#!\u002Fbin\u002Fbash\n# Research with Zerion\npositions=$(zerion-cli wallet positions $WALLET --json)\n\n# Find volatile tokens on Base\nrisky=$(echo $positions | jq '[.data[] | select(.relationships.chain.data.id == \"base\") | select(.attributes.value > 500)]')\n\n# Execute with Bankr\nfor token in $(echo $risky | jq -r '.[].attributes.fungible_info.symbol'); do\n  bankr \"set stop loss on $token at -20%\"\ndone\n```\n\n### Example: Whale Copy Trading\n\nWatch a whale wallet and mirror trades:\n\n```typescript\n\u002F\u002F Webhook handler\napp.post('\u002Fwebhook\u002Fzerion', async (req, res) => {\n  const { type, data } = req.body;\n\n  if (type === 'transaction' && data.operation_type === 'trade') {\n    const { transfers } = data;\n    const bought = transfers.find(t => t.direction === 'in');\n\n    if (bought && bought.value > 1000) {\n      \u002F\u002F Mirror the trade via Bankr\n      await bankr(`buy $100 of ${bought.fungible_info.symbol}`);\n    }\n  }\n});\n```\n\n### Example: Best Swap Route\n\nGet quotes from Zerion, execute via Bankr:\n\n```typescript\n\u002F\u002F Get swap quote from Zerion\nconst quote = await zerion.get('\u002Fv1\u002Fswap\u002Foffers', {\n  params: { from: 'USDC', to: 'ETH', amount: '1000' }\n});\n\nconst bestRate = quote.data[0];\nconsole.log(`Best rate: ${bestRate.rate} from ${bestRate.provider}`);\n\n\u002F\u002F Execute via Bankr\nawait bankr(`swap $1000 USDC to ETH on base`);\n```\n\n---\n\n## Supported Chains\n\nAll 41+ chains including:\n\n| Chain | Chain ID |\n|-------|----------|\n| Ethereum | `ethereum` |\n| Base | `base` |\n| Arbitrum | `arbitrum` |\n| Optimism | `optimism` |\n| Polygon | `polygon` |\n| Solana | `solana` |\n| zkSync Era | `zksync-era` |\n| Linea | `linea` |\n| Scroll | `scroll` |\n| Blast | `blast` |\n| Zora | `zora` |\n| Degen | `degen` |\n| Berachain | `berachain` |\n| Monad | `monad` |\n| Abstract | `abstract` |\n| ... | +26 more |\n\nFull list: https:\u002F\u002Fdevelopers.zerion.io\u002Freference\u002Fsupported-blockchains\n\n---\n\n## MCP Server\n\nConnect Claude, Cursor, or any MCP client:\n\n```json\n{\n  \"mcpServers\": {\n    \"zerion\": {\n      \"command\": \"npx\",\n      \"args\": [\"zerion-mcp-server\"],\n      \"env\": {\n        \"ZERION_API_KEY\": \"zk_...\"\n      }\n    }\n  }\n}\n```\n\n---\n\n## Error Handling\n\n| Code | Description |\n|------|-------------|\n| 200 | Success |\n| 202 | Accepted - data being prepared, retry shortly |\n| 400 | Bad Request - check query params |\n| 401 | Unauthorized - invalid API key |\n| 402 | Payment Required - x402 payment needed |\n| 404 | Not Found - invalid address or resource |\n| 429 | Rate Limited - back off with exponential backoff |\n| 500 | Server Error - retry with backoff |\n\n**Note**: 202 responses mean data is being indexed. Retry every few seconds until 200. Stop after 2 minutes if still 202.\n\n---\n\n## Resources\n\n- **Get API Key**: https:\u002F\u002Fdashboard.zerion.io (free, instant, no credit card)\n- **API Documentation**: https:\u002F\u002Fdevelopers.zerion.io\n- **Supported Chains**: https:\u002F\u002Fdevelopers.zerion.io\u002Freference\u002Fsupported-blockchains\n- **CLI Repository**: https:\u002F\u002Fgithub.com\u002Fzeriontech\u002Fzerion-cli\n- **MCP Server**: https:\u002F\u002Fgithub.com\u002Fzeriontech\u002Fzerion-mcp-server\n- **x402 Protocol**: https:\u002F\u002Fdevelopers.zerion.io\u002Freference\u002Fx402\n- **Zerion for Agents**: https:\u002F\u002Fzerion.io\u002Fagents\n- **Spam Filtering**: https:\u002F\u002Fdevelopers.zerion.io\u002Freference\u002Ftoken-spam-filtering\n- **FAQs**: https:\u002F\u002Fdevelopers.zerion.io\u002Freference\u002Ffaqs\n",{"name":5,"description":7},"main","7c29c30be0c403f8fb9bc04ce9f71d141946fa4b","skills\u002Fzerion","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fagentbot-opensource","https:\u002F\u002Fgithub.com\u002Fdnzengou","2026-06-11 17:23:26",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add dnzengou\u002Fagentbot-opensource --skill zerion",{"tool":35,"command":36},"bunx","bunx skills add dnzengou\u002Fagentbot-opensource --skill zerion",{"tool":38,"command":39},"pnpm","pnpm dlx skills add dnzengou\u002Fagentbot-opensource --skill zerion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fagentbot-opensource\u002Fblob\u002Fmain\u002Fskills\u002Fzerion\u002FSKILL.md",true,[43,49,53],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"references\u002Fapi-reference.md","REFERENCE","参考文档",9502,"https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fagentbot-opensource\u002Fblob\u002Fmain\u002Fskills\u002Fzerion\u002Freferences\u002Fapi-reference.md",{"path":50,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fbankr-integration.md",7079,"https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fagentbot-opensource\u002Fblob\u002Fmain\u002Fskills\u002Fzerion\u002Freferences\u002Fbankr-integration.md",{"path":54,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fx402-reference.md",3316,"https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fagentbot-opensource\u002Fblob\u002Fmain\u002Fskills\u002Fzerion\u002Freferences\u002Fx402-reference.md",[58,64,71,78,85,92],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M75M2VNE8J5AWK3SWTS1SY3D","provisioning-v1","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fagentbot-opensource\u002Fblob\u002Fmain\u002Fweb\u002Fskills\u002Fprovisioning-v1\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M75M2RG56N0M99TARE085J1C","get-api-docs","Use this skill when you need documentation for a third-party library, SDK, or API before writing code that uses it — for example, \"use the OpenAI API\", \"call the Stripe API\", \"use the Anthropic SDK\", \"query Pinecone\", or any time the user asks you to write code against an external service and you need current API reference. Fetch the docs with chub before answering, rather than relying on training knowledge.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fagentbot-opensource\u002Fblob\u002Fmain\u002Fweb\u002Fskills\u002Fget-api-docs\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M75M2MJ2G321YCJ43WM65JAM","zyfai","Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial deterministic subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit\u002Fwithdraw anytime.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fagentbot-opensource\u002Fblob\u002Fmain\u002Fskills\u002Fzyfai\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M75M2AB4F5V8AXR17GF45WTF","zapper","Placeholder for Zapper skill.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fagentbot-opensource\u002Fblob\u002Fmain\u002Fskills\u002Fzapper\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M75M284H9XC3V975MRKZ1VT4","yoink","Play Yoink, an onchain capture-the-flag game on Base. Yoink the flag from the current holder, check game stats and leaderboards, view player scores, and compete for the trophy. Uses Bankr for transaction execution.","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fagentbot-opensource\u002Fblob\u002Fmain\u002Fskills\u002Fyoink\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M75M25XYY7C6AQE4V2GDCRH1","web-design-guidelines","Review UI code for Web Interface Guidelines compliance. Use when asked to \"review my UI\", \"check accessibility\", \"audit design\", \"review UX\", or \"check my site against best practices\".","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fagentbot-opensource\u002Fblob\u002Fmain\u002Fskills\u002Fweb-design-guidelines\u002FSKILL.md",[],[]]