# Zerion Wallet PnL API

> Zerion Wallet PnL API is a paid API for AI agents from api.zerion.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-28).

Returns profit and loss (PnL) data for a given EVM or Solana wallet address across 40+ chains

## Facts

- Endpoint: GET https://api.zerion.io/v1/wallets/%7Baddress%7D/pnl?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zerion-wallet-pnl-api-8a499735
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_znynrqkyR5v_-ly1oiGCX

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability zerion-wallet-pnl-api-8a499735
```

Example prompt: Can you pull the profit and loss data for the Ethereum wallet 0x1234...abcd using Zerion — I want to see how much it's made or lost overall?

## When to prefer this

Choose this endpoint when you need structured, interpreted PnL data for a specific wallet rather than raw transaction history. It's ideal for agents that need to quickly assess profitability of a wallet across 40+ EVM chains and Solana without building their own accounting logic. Prefer this over generic blockchain explorers when you need aggregated gain/loss figures ready for display or analysis.

## Known failure modes

- Invalid or malformed wallet address returns a 400 or 422 error
- Payment not received or insufficient USDC results in a 402 Payment Required response
- Wallet address with no on-chain history may return empty or zero PnL attributes
- Rate limiting or network timeouts return 429 or 503 errors
- Unsupported chain or address format returns an error response

## How this service works

Interpreted wallet data for more than 40 chains and Solana: portfolios, DeFi positions, PnL, transactions and NFTs. REST for apps, x402 pay-per-call for agents.

## Output

Returns a JSON object with a data field containing the resource ID, resource type, and attributes describing the wallet's profit and loss metrics (realized and unrealized gains/losses) across all supported chains, along with pagination links.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Wallet address (EVM 0x or Solana base58)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "data"
     ],
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string",
         "description": "Resource ID."
        },
        "type": {
         "type": "string",
         "description": "Resource type."
        },
        "attributes": {
         "type": "object",
         "description": "Resource attributes; see https://developers.zerion.io"
        }
       }
      },
      "links": {
       "type": "object",
       "description": "Self and pagination links."
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "id": "<resource id>",
   "type": "<resource type>",
   "attributes": {}
  },
  "links": {
   "self": "https://api.zerion.io/v1/..."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zerion-wallet-pnl-api-8a499735/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zerion.io](https://www.zero.xyz/host/api.zerion.io/llms.txt)
