# DeBank Wallet Portfolio Lookup

> DeBank Wallet Portfolio Lookup is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Returns a comprehensive DeFi portfolio snapshot for any EVM or Solana wallet address, including net worth, positions by type, protocol breakdowns, and top chains

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/debank-wallet-portfolio?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/debank-wallet-portfolio-lookup-52276b43
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FPYa4G_rQzdTvI4GYuB7s

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 debank-wallet-portfolio-lookup-52276b43
```

Example prompt: Pull the full DeFi portfolio for wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 — I want to see the net worth, how it's split between staked, deposited, and wallet balances, which protocols it's using, and the top chains.

## When to prefer this

Use this endpoint when you need a cross-protocol, cross-chain DeFi portfolio view for a single wallet without signing up for a DeBank or Zerion API key. It is ideal for read-only portfolio audits, whale watching, risk checks, and reporting workflows. Prefer it over raw on-chain RPC calls when you want aggregated, USD-denominated position data across many protocols in one call. The pay-per-call x402 model makes it suitable for agent workflows that query wallets sporadically without committing to a subscription.

## Known failure modes

- Invalid or malformed wallet address returns an error or empty result
- Address with no DeFi activity returns zero values for most fields
- Rate limit or upstream DeBank/Zerion API unavailability causes a 5xx response
- Solana address format not recognized if passed incorrectly
- limit parameter out of range (not 1-100) may cause validation error

## How this service works

Multi-chain wallet net worth with DeFi positions and debt (40+ EVM chains and Solana, data from the Zerion API): total value in USD split by wallet, deposited, borrowed, locked and staked, top chains, and every protocol position (protocol, chain, type such as deposit, loan, staked, reward or locked, token, amount and USD value) grouped by protocol, with total debt.

## Output

Returns a JSON object with net worth in USD, balance breakdown by type (wallet, staked, deposited, borrowed, locked), a list of individual DeFi positions (name, type, chain, token, amount, USD value, protocol, pool address), protocol-level aggregates (value, debt, position count), top chains by USD value, total position count, and a 1-day percentage change. Also includes the source URL and timestamp of the data fetch.

## 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": [
      "address"
     ],
     "properties": {
      "limit": {
       "type": "string",
       "description": "Protocol positions to return, 1 to 100 (default 50)"
      },
      "address": {
       "type": "string",
       "description": "EVM address 0x… or Solana address (required)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "byType": {
   "locked": 0.09,
   "staked": 2910.71,
   "wallet": 1115199.78,
   "borrowed": 0,
   "deposited": 4615.36
  },
  "source": "https://api.zerion.io/v1/wallets/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "debtUsd": 0,
  "checkedAt": "2026-10-23T09:36:05.564Z",
  "positions": [
   {
    "name": "Ambire WALLET Pool",
    "type": "staked",
    "chain": "ethereum",
    "token": "WALLET",
    "amount": 156137.1538945338,
    "protocol": "Ambire",
    "valueUsd": 2910.37,
    "poolAddress": "0xe575cc6ec0b5d176127ac61ad2d3d9d19d1aa4a0"
   },
   {
    "name": "Terminal Yield: ETH Pool",
    "type": "deposit",
    "chain": "ethereum",
    "token": "ETH",
    "amount": 0.5,
    "protocol": "Terminal",
    "valueUsd": 1196.27,
    "poolAddress": "0xa1150cd4a014e06f5e0a6ec9453fe0208da5adab"
   }
  ],
  "protocols": [
   {
    "debtUsd": 0,
    "protocol": "Ambire",
    "valueUsd": 2910.51,
    "positions": 2
   },
   {
    "debtUsd": 0,
    "protocol": "Uniswap V3",
    "valueUsd": 1330.4,
    "positions": 21
   }
  ],
  "topChains": [
   {
    "chain": "ethereum",
    "valueUsd": 1061942.65
   },
   {
    "chain": "binance-smart-chain",
    "valueUsd": 38970.71
   }
  ],
  "netWorthUsd": 1123534.66,
  "positionsTotal": 200,
  "change1dPercent": -8.443
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/debank-wallet-portfolio-lookup-52276b43/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
