# ChainRay Portfolio Analyzer

> ChainRay Portfolio Analyzer is a paid API for AI agents from chainray.online, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-08).

Analyzes a blockchain wallet or contract address to produce a comprehensive portfolio overview including holdings, balances, and DeFi positions.

## Facts

- Endpoint: GET https://chainray.online/portfolio-analyze/%7Baddress%7D
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-08
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-portfolio-analyzer-bd914f42
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AvNdNahGLBvPtYHFg-Wyq

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 chainray-portfolio-analyzer-bd914f42
```

Example prompt: Can you analyze the portfolio for Ethereum address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum mainnet and tell me what tokens and DeFi positions it holds?

## When to prefer this

Use this endpoint when you need a comprehensive portfolio snapshot for a specific blockchain address, including DeFi positions and token holdings. Prefer this over simple balance checks when you need multi-asset aggregation. Choose ChainRay when you need broad multi-chain coverage (46 chains) and verifiable on-chain data with pay-per-request pricing.

## Known failure modes

- Invalid or malformed wallet address returns 400 error
- Unsupported chain parameter returns error indicating chain not available
- Address with no on-chain activity may return empty portfolio
- Payment failure via x402 protocol results in 402 response blocking data
- Rate limiting or timeout for addresses with very large transaction histories

## How this service works

The most complete blockchain data and intelligence service for AI agents. 93 endpoints across 46 chains, from gas fees to DeFi analytics, with real-time streams, intent routing, and verifiable proofs. Pay-per-request via x402.

## Output

A structured breakdown of the wallet's on-chain portfolio including token balances, DeFi protocol positions, asset values, and overall portfolio composition across the specified blockchain network.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "chain": "ethereum",
   "address": "0x1234567890123456789012345678901234567890"
  }
 }
}
```

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "Blockchain network"
      },
      "address": {
       "type": "string",
       "description": "Wallet or contract address"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainray-portfolio-analyzer-bd914f42/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chainray.online](https://www.zero.xyz/host/chainray.online/llms.txt)
