# FiatDock Base Portfolio

> FiatDock Base Portfolio is a paid API for AI agents from fiatdock.com, paid per call via x402, $0.0045/call, status unknown (last checked 2026-10-11).

Returns the full portfolio of a Base address: ETH balance, all ERC-20 token balances with market prices and USD values, a USD total, and spam-token filtering

## Facts

- Endpoint: GET https://fiatdock.com/v1/chain/portfolio?utm_source=zero.xyz
- Price: $0.0045/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fiatdock-base-portfolio-f1a52e12
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DEdWDgN0zs8z-BaRg6QDi

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 fiatdock-base-portfolio-f1a52e12
```

Example prompt: What's the current portfolio breakdown for Base wallet 0x742d35Cc6634C0532925a3b844Bc454e4438f44e — show me all token balances, their USD prices, and the total portfolio value in USD?

## When to prefer this

Choose this endpoint when you need a complete, USD-valued snapshot of all assets held by a Base wallet in a single call — especially when spam filtering and aggregated USD totals are required. It is superior to querying individual ERC-20 contracts or block explorers when you want a pre-aggregated, price-enriched, spam-cleaned view without stitching together multiple API calls. Prefer it over on-chain RPC calls when pricing data is also needed alongside raw balances.

## Known failure modes

- Invalid or malformed address returns a 400 error
- Address with zero holdings returns empty token list and zero totals
- Unknown or unpriced tokens are listed but excluded from USD total without error
- Spam tokens flagged and excluded silently — agent may not realize holdings were filtered
- Network congestion on Base may cause stale or delayed balance reads
- Payment failure (x402) results in 402 response with payment details before data is returned

## How this service works

What a Base address holds: the ETH balance read from the chain, every ERC-20 with its balance, market price and USD value, and a USD total - spam tokens imitating real ones are flagged and left out of the total, unpriced tokens listed but not counted. Send {} for the paying wallet. Pay-per-call via x402. An empty body is answered for the wallet that pays (the payment's signer); send {"address":"0x…"} for any other address.

## Output

Returns a structured portfolio object containing: ETH balance on Base, a list of ERC-20 tokens each with balance, market price in USD, and USD value, a grand total USD value of all legitimate holdings, and flags for spam/unpriced tokens (excluded from the total but listed separately).

## 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",
     "required": [],
     "properties": {
      "address": {
       "type": "string",
       "example": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
       "maxLength": 42,
       "description": "A 40-hex EVM address (0x…) on Base. Omit the whole body to get the paying wallet"
      }
     }
    }
   },
   "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/fiatdock-base-portfolio-f1a52e12/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fiatdock.com](https://www.zero.xyz/host/fiatdock.com/llms.txt)
