# Einstein AI x402 API – Wallet Token Holdings & Portfolio Analyzer

> Einstein AI x402 API – Wallet Token Holdings & Portfolio Analyzer is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.550000/call, status unknown (last checked 2026-09-13).

Fetches complete token holdings and portfolio composition for a given wallet address across major EVM-compatible blockchains

## Facts

- Endpoint: POST https://api.relai.fi/relay/1769629274857/x402/bitquery/wallet-holdings
- Price: $0.550000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/einstein-ai-x402-api-wallet-token-holdings-portfolio-analyzer-b9cfbd99
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_u_m7kAlaqfidQI2wsm0a4

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 einstein-ai-x402-api-wallet-token-holdings-portfolio-analyzer-b9cfbd99 -d '<json body>'
```

Example prompt: What tokens does wallet 0x742d35Cc6634C0532925a3b844Bc454e4438f44e hold on Ethereum? I want to see the full portfolio composition and all token balances.

## When to prefer this

Use this endpoint when you need on-chain token holding data for a specific wallet across popular EVM chains, especially when you want multi-chain portfolio composition rather than just native balances. Prefer this over generic block explorers when you need structured, machine-readable token portfolio data for agent workflows.

## Known failure modes

- Missing walletAddress parameter returns validation error
- Invalid wallet address format returns error
- Unsupported chain value returns enum validation error
- Payment failure (insufficient USDC balance) blocks request under x402 protocol
- Wallet with no token holdings returns empty portfolio
- Bitquery upstream timeout or rate limit causes 5xx error

## How this service works

Analyze complete token holdings and portfolio composition for any wallet. Supported chains: ethereum, base, bsc, arbitrum, polygon. Default chain: ethereum. Required params: walletAddress.

## Output

A structured list of all token holdings and portfolio composition for the queried wallet, including token names, amounts, and asset breakdown across the specified blockchain (ethereum, base, bsc, arbitrum, or polygon).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "base",
    "ethereum",
    "bsc",
    "arbitrum",
    "polygon",
    "optimism",
    "solana"
   ],
   "type": "string",
   "description": "Blockchain to query (e.g., base, ethereum, bsc, solana)"
  },
  "walletAddress": {
   "type": "string",
   "description": "Wallet address (for wallet-specific queries)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/einstein-ai-x402-api-wallet-token-holdings-portfolio-analyzer-b9cfbd99/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)
