# Wallet Portfolio Value

> Wallet Portfolio Value is a paid API for AI agents from chain.tollkit.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Returns the total portfolio value and token holdings (native coin, USDC, USDT, and specified tokens) for a wallet address on Base, Ethereum, or Solana with real-time USD prices from on-chain pools.

## Facts

- Endpoint: POST https://chain.tollkit.dev/chain/portfolio?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wallet-portfolio-value-0b3ecd20
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pnCCQVdibSxChxZgdsMkg

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-value-0b3ecd20 -d '<json body>'
```

Example prompt: What is the total USD value of my wallet 0xBbfCE2D320dE6aB328Ba93A771c531ebFC9cE704 on Base, including USDC and the token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913?

## When to prefer this

Use this endpoint when you need a comprehensive USD-denominated snapshot of all assets in a single wallet across Base, Ethereum, or Solana — especially when you want both native coin and ERC-20/SPL token values aggregated into a total. Prefer this over a simple balance check when you need portfolio-level value aggregation with real-time on-chain prices. The ability to include up to 20 extra token contracts makes it ideal for DeFi power users tracking custom tokens.

## Known failure modes

- Invalid wallet address format returns a validation error
- Unsupported chain value outside base/ethereum/solana is rejected
- Token contract address not found on the specified chain may appear as unpriced holding
- Insufficient x402 payment (0.008 USDC) results in payment-required error
- On-chain pool data unavailable for exotic tokens results in null price and warning flag
- Rate limiting or node unavailability may cause transient 5xx errors

## How this service works

Wallet balances, tokens, transactions and prices on Base, Ethereum and Solana. Other Tollkit tools are described at: https://extract.tollkit.dev/openapi.json, https://attest.tollkit.dev/openapi.json, https://web.tollkit.dev/openapi.json, https://data.tollkit.dev/openapi.json.

## Output

Returns a JSON object with the chain name, wallet address, a list of holdings (each with asset contract, symbol, amount, USD price sourced from on-chain pools, USD value, and any warnings), total portfolio USD value, count of unpriced holdings, timestamp of the check, and a block explorer URL for the wallet.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "base",
    "ethereum",
    "solana"
   ],
   "type": "string",
   "default": "base",
   "description": "Which chain to read: \"base\" (default), \"ethereum\" or \"solana\"."
  },
  "tokens": {
   "type": "array",
   "items": {
    "type": "string",
    "pattern": "^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$"
   },
   "maxItems": 20,
   "description": "Extra token contracts or SPL mints to include."
  },
  "address": {
   "type": "string",
   "pattern": "^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$",
   "description": "Wallet address."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Covers the native coin, USDC/USDT and any tokens you list in `tokens`. Prices are read from on-chain pools at this moment.",
  "chain": "base",
  "address": "0xBbfCE2D320dE6aB328Ba93A771c531ebFC9cE704",
  "holdings": [
   {
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": 2.222,
    "symbol": "USDC",
    "warning": null,
    "price_usd": 1,
    "value_usd": 2.22,
    "pool_depth_usd": null
   }
  ],
  "checked_at": "2026-10-04T07:45:41.538Z",
  "explorer_url": "https://basescan.org/address/0xBbfCE2D320dE6aB328Ba93A771c531ebFC9cE704",
  "total_value_usd": 2.22,
  "unpriced_holdings": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wallet-portfolio-value-0b3ecd20/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chain.tollkit.dev](https://www.zero.xyz/host/chain.tollkit.dev/llms.txt)
