# x402 Bazaar — ERC-20 Portfolio Net Worth

> x402 Bazaar — ERC-20 Portfolio Net Worth is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Returns a spam-filtered, USD-valued ERC-20 token portfolio for a Base address, sorted by value with a total net worth, powered by Covalent pricing data.

## Facts

- Endpoint: POST https://api.relai.fi/relay/1782567677091/api/x402/wallet-networth?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-bazaar-erc-20-portfolio-net-worth-e4afde6e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3hZFPTiZsDWVyx6AzCNBU

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 x402-bazaar-erc-20-portfolio-net-worth-e4afde6e -d '<json body>'
```

Example prompt: What are all the ERC-20 tokens held by 0xAbC123...def on Base, and what is the total portfolio worth in USD right now — spam filtered and sorted by value?

## When to prefer this

Use this endpoint when you need accurate, spam-filtered USD valuations of all ERC-20 holdings on Base, especially when stablecoins and long-tail tokens must be priced correctly. Prefer it over generic balance endpoints that lack USD conversion or spam filtering.

## Known failure modes

- 402 Payment Required — must pay $0.01 USDC on Base to the specified address and retry
- Invalid or malformed wallet address returns an error
- Address with no ERC-20 tokens returns an empty portfolio
- Covalent pricing unavailable for a token may result in missing USD values
- Network or relay timeout returns 5xx error

## How this service works

Complete ERC-20 portfolio for a Base address with accurate USD values from Covalent (handles stablecoins & long-tail tokens). Spam-filtered, sorted by value, with a total. The reliable portfolio endpoint. Paid via x402: $0.01 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.

## Output

A sorted list of ERC-20 token holdings for the given Base address, each with token symbol, balance, and USD value derived from Covalent pricing (including stablecoins and long-tail tokens), spam filtered, plus a total USD portfolio net worth.

## 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": {
      "address": {
       "type": "string",
       "description": "Wallet address"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-bazaar-erc-20-portfolio-net-worth-e4afde6e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
