# Base Wallet Quick Check (ETH + USDC + Gas Bundle)

> Base Wallet Quick Check (ETH + USDC + Gas Bundle) 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, live ERC-20 transfer gas cost, and can_pay_gas/can_pay_x402 flags for a Base wallet in a single call.

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/v1/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/base-wallet-quick-check-eth-usdc-gas-bundle-bc5843a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MWN2DlLDE2YhWcS1WspeM

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 base-wallet-quick-check-eth-usdc-gas-bundle-bc5843a8
```

Example prompt: Before you send that USDC payment, check wallet 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 on Base — I need to know its ETH and USDC balances, the current gas cost for an ERC-20 transfer, and whether it can actually pay gas and x402 fees.

## When to prefer this

Choose this endpoint when you need ETH balance, USDC balance, nonce, and gas cost for a Base wallet all at once and want to avoid 2-3 separate API calls. At $0.003 it is cheaper than calling eth-balance + erc20-balance + base-gas individually ($0.006 combined). Ideal for pre-payment checks in autonomous agent workflows, x402 payment pipelines, or any onchain automation that must confirm wallet readiness before executing a transaction.

## Known failure modes

- Invalid wallet address format (not matching ^0x[0-9a-fA-F]{40}$) returns a validation error
- Wallet exists but has zero balances — returns all zeroes with can_pay_gas=false and can_pay_x402=false (not an error, but may mislead if not distinguished from lookup failure)
- Network congestion on Base may cause stale or slow gas estimates
- Payment for the API call itself fails (insufficient USDC for x402 fee) — call is rejected before executing
- Workers.dev service downtime returns 5xx errors

## 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: the wallet address, chain ('base'), native ETH balance, USDC balance, account nonce, live gas cost of an ERC-20 transfer in ETH, a can_pay_gas boolean (true if ETH covers gas), and a can_pay_x402 boolean (true if USDC balance is sufficient for an x402 payment).

## 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/base-wallet-quick-check-eth-usdc-gas-bundle-bc5843a8/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)
