# Base Wallet Preflight Oracle

> Base Wallet Preflight Oracle is a paid API for AI agents from home.chrz.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Checks a Base mainnet wallet's ETH and USDC balances, current gas price, and transactability before an agent attempts an on-chain action

## Facts

- Endpoint: POST https://home.chrz.dev/agent-dust/v1/agent/base-preflight
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-wallet-preflight-oracle-f8dab77c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-oTzl0Q436Ip5ff43TOdE

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-preflight-oracle-f8dab77c -d '<json body>'
```

Example prompt: Before you try to send that transaction, can you run a preflight check on my Base wallet 0xE145b40A782E6eC778b2Ae9aC396ae5C0d6a311d to see if it has enough ETH for gas and whether it can actually transact right now?

## When to prefer this

Use this endpoint when an AI agent needs to verify a Base mainnet wallet is funded and ready before attempting any on-chain transaction — particularly useful as a guard step in agentic loops to avoid wasted gas or failed transactions. Prefer this over raw RPC calls when you want a single opinionated summary (can_transact_now + dust_hint) rather than raw blockchain data.

## Known failure modes

- Invalid or malformed wallet address returns an error
- Network congestion may cause stale gas price readings
- Payment of $0.01 USDC via x402 required; missing or invalid payment returns 402
- Wallet address not on Base mainnet may return unexpected results
- Service unavailability returns 5xx error

## How this service works

x402-paid Solana mainnet wallet preflight oracle for agents.

## Output

Returns a JSON object with the wallet's current nonce, ETH balance, USDC balance, gas price in gwei, a boolean can_transact_now flag, and a human-readable dust_hint string explaining any issues preventing the wallet from transacting on Base mainnet (chain ID 8453).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "address",
      "chain_id",
      "eth_balance",
      "usdc_balance",
      "can_transact_now"
     ],
     "properties": {
      "nonce": {
       "type": "integer"
      },
      "address": {
       "type": "string"
      },
      "chain_id": {
       "type": "integer"
      },
      "dust_hint": {
       "type": "string"
      },
      "eth_balance": {
       "type": "number"
      },
      "usdc_balance": {
       "type": "number"
      },
      "gas_price_gwei": {
       "type": "number"
      },
      "can_transact_now": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "nonce": 0,
  "address": "0xE145b40A782E6eC778b2Ae9aC396ae5C0d6a311d",
  "chain_id": 8453,
  "dust_hint": "needs a small ETH top-up on Base before agents should bother",
  "eth_balance": 0,
  "usdc_balance": 0,
  "gas_price_gwei": 0,
  "can_transact_now": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-wallet-preflight-oracle-f8dab77c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from home.chrz.dev](https://www.zero.xyz/host/home.chrz.dev/llms.txt)
