# wallet-portfolio-optimism

> wallet-portfolio-optimism is a paid API for AI agents from chain.intel.rallylive.ca, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-02).

Returns a full portfolio snapshot for any wallet on OP Mainnet: native ETH balance, all ERC-20 holdings with USD prices, total net worth, and NFT collection count.

## Facts

- Endpoint: GET https://chain.intel.rallylive.ca/wallet/portfolio/optimism?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wallet-portfolio-optimism-c786e964
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fqYXmhdaSYfhwXdSKB7DH

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 wallet-portfolio-optimism-c786e964
```

Example prompt: What's the full portfolio breakdown for wallet 0x4a3b...c7d2 on Optimism — show me all token balances with their current USD values, total net worth, and how many NFT collections they hold.

## When to prefer this

Use this endpoint when you need a comprehensive, single-call portfolio snapshot for any wallet on Optimism (OP Mainnet) — combining native balance, all ERC-20 holdings priced in USD, a total net worth figure, and NFT collection count. Prefer this over generic chain explorers when you need aggregated USD values in one response without multiple round-trips. Choose the Ethereum mainnet or BSC siblings if the wallet activity is on those chains instead.

## Known failure modes

- Invalid or malformed wallet address returns an error or empty result
- Address with no on-chain activity may return zero balances and zero net worth
- Price data unavailable for obscure or newly launched tokens may result in null or zero USD values
- Rate limiting or payment failure (x402) if the $0.03 per-call fee is not satisfied
- Network latency or RPC issues on OP Mainnet may cause timeouts

## How this service works

OP Mainnet: Wallet portfolio: native balance plus every ERC-20 holding with USD price and value, total net worth, NFT collection count. $0.03 per call.

## Output

Returns the wallet's native ETH balance on OP Mainnet, a list of every ERC-20 token held with current USD price per token and total USD value, an aggregated total net worth in USD, and a count of distinct NFT collections held by the address.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wallet-portfolio-optimism-c786e964/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chain.intel.rallylive.ca](https://www.zero.xyz/host/chain.intel.rallylive.ca/llms.txt)
