# ChainVerdict Portfolio Data API

> ChainVerdict Portfolio Data API is a paid API for AI agents from chainverdict.xyz, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-17).

Retrieves on-chain portfolio and token balance data for a given blockchain address

## Facts

- Endpoint: GET https://chainverdict.xyz/v1/data/portfolio/%7Baddress%7D?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainverdict-portfolio-data-api-c4958702
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_93f3TQty04O5PcGvrsldp

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 chainverdict-portfolio-data-api-c4958702
```

Example prompt: Can you pull up the on-chain portfolio and token balances for wallet address 0x742d35Cc6634C0532925a3b844Bc454e4438f44e?

## When to prefer this

Choose this endpoint when you need on-chain portfolio or token balance data for a specific blockchain wallet address and are operating within an x402 micropayment-enabled agent framework. At $0.004 USDC per call it is cost-effective for per-address lookups. Prefer this over general blockchain explorers when you need structured, machine-readable portfolio data rather than human-facing block explorer pages.

## Known failure modes

- HTTP 402 returned if payment is not included with the request — must use x402 protocol with USDC payment
- Invalid or malformed blockchain address returns an error
- Address with no on-chain activity may return empty portfolio data
- Network timeouts if the underlying blockchain node is slow to respond

## How this service works

x402 v2 pay-per-call. Unpaid requests receive HTTP 402 with payment requirements.

## Output

Returns a structured object containing token balances and portfolio data associated with the queried blockchain address, including asset types and quantities held on-chain.

## 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",
     "required": [
      "addr"
     ],
     "properties": {
      "addr": {
       "type": "string",
       "description": "Base address to read balances for"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainverdict-portfolio-data-api-c4958702/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chainverdict.xyz](https://www.zero.xyz/host/chainverdict.xyz/llms.txt)
