# Wallet Portfolio Balance Check (Base Chain)

> Wallet Portfolio Balance Check (Base Chain) is a paid API for AI agents from kr-x402-mvp.kgy5612.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Returns ETH balance, USDC balance, nonce, gas affordability, and x402 payment capability for a given Base wallet address

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/v1/wallet-portfolio?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wallet-portfolio-balance-check-base-chain-14885b7d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V1R6Pa83IM06zAOIH8u9W

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-balance-check-base-chain-14885b7d
```

Example prompt: Check wallet 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 on Base — tell me its ETH and USDC balances, whether it can cover gas for an ERC20 transfer, and whether it's set up to make x402 micropayments.

## When to prefer this

Use this endpoint when an AI agent needs a fast, no-API-key balance and gas-readiness check for a Base chain wallet, especially in x402-enabled autonomous agent pipelines. Ideal for pre-flight checks before executing onchain transactions, validating counterparty wallets before payment, or monitoring agent wallet funding levels. Prefer this over full blockchain explorers when you only need balance + gas + x402 affordability signals in a single lightweight call.

## Known failure modes

- Invalid wallet address format (not matching ^0x[0-9a-fA-F]{40}$) — returns validation error
- Wallet address not found or has zero activity — returns zeroed balances rather than error
- x402 payment failure if calling agent lacks USDC to pay the $0.003 fee — returns 402 Payment Required
- RPC/node connectivity issues on Base chain causing stale or unavailable data
- Rate limiting or worker capacity limits under high load

## How this service works

Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.

## Output

A JSON object containing: ETH balance (float), USDC balance (float), chain name ('base'), wallet nonce (integer), a boolean indicating whether the wallet can pay gas for an ERC20 transfer, a boolean indicating whether it can pay x402 micropayments, and the estimated gas cost in ETH for an ERC20 transfer.

## 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": [
      "wallet"
     ],
     "properties": {
      "wallet": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "examples": [
        "0xe4be4d0bd82d8e68203deff81f79ede0529f2617"
       ],
       "description": "Wallet"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "eth": 0,
  "usdc": 0.079,
  "chain": "base",
  "nonce": 0,
  "wallet": "0xe4be4d0bd82d8e68203deff81f79ede0529f2617",
  "can_pay_gas": false,
  "can_pay_x402": true,
  "gas_cost_erc20_transfer_eth": 4e-7
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wallet-portfolio-balance-check-base-chain-14885b7d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kr-x402-mvp.kgy5612.workers.dev](https://www.zero.xyz/host/kr-x402-mvp.kgy5612.workers.dev/llms.txt)
