# AgentFund On-Chain Portfolio (USD-Valued)

> AgentFund On-Chain Portfolio (USD-Valued) is a paid API for AI agents from x402.agentfund.net, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Returns a USD-valued breakdown of a Base wallet address's on-chain portfolio holdings

## Facts

- Endpoint: POST https://x402.agentfund.net/x402/onchain_portfolio
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentfund-on-chain-portfolio-usd-valued-c6aea897
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PDetg8r9v6oeyEYbIbnrf

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 agentfund-on-chain-portfolio-usd-valued-c6aea897 -d '<json body>'
```

Example prompt: What's the current USD-valued on-chain portfolio for wallet address 0x1234abcd... on Base? I want to see all token holdings and their values.

## When to prefer this

Use this endpoint when you need a quick, USD-denominated snapshot of a Base wallet's on-chain portfolio. Prefer it over generic blockchain explorers when you need structured, JSON-formatted token valuations ready for downstream processing or reporting by an AI agent.

## Known failure modes

- Invalid or malformed wallet address returns an error
- Wallet address not on Base network may return empty or error
- Network/RPC issues may cause timeouts or stale data
- Payment failure via x402 protocol results in 402 response before data is returned

## How this service works

On-chain Portfolio (USD-valued)

## Output

A USD-valued breakdown of on-chain holdings for the specified Base wallet address, including token balances and their current USD valuations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "address": {
   "type": "string",
   "description": "Wallet address on Base."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "address": "0x0000000000000000000000000000000000000001",
  "chainId": 8453,
  "holdings": [
   {
    "kind": "native",
    "symbol": "ETH",
    "balance": "1.5",
    "priceUsd": 3120.44,
    "valueUsd": 4680.66
   }
  ],
  "priceSource": "Chainlink on-chain price feeds (Base)",
  "totalValueUsd": 4680.66
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentfund-on-chain-portfolio-usd-valued-c6aea897/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentfund.net](https://www.zero.xyz/host/x402.agentfund.net/llms.txt)
