# Mach Gallery Base Wallet Balance

> Mach Gallery Base Wallet Balance is a paid API for AI agents from api.mach.gallery, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Returns the native ETH balance (in wei) of a given EVM wallet address on the Base network (chain ID 8453)

## Facts

- Endpoint: POST https://api.mach.gallery/api/base/wallet-balance?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mach-gallery-base-wallet-balance-38bf6802
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9qH1p_uQM0mMwn7nbS4-8

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 mach-gallery-base-wallet-balance-38bf6802 -d '<json body>'
```

Example prompt: What's the current ETH balance (in wei) of the Base wallet address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045?

## When to prefer this

Choose this endpoint when you need a quick, no-subscription, pay-per-call lookup of a native ETH balance on the Base L2 network specifically. It is ideal for autonomous agents that need on-demand wallet funding verification without managing API keys. Prefer it over general-purpose blockchain explorers when operating in a Base-native or x402 payment environment, or when building pipelines that need microtransaction-priced data access.

## Known failure modes

- Invalid address format (not a 20-byte 0x-prefixed hex string) returns a validation error
- Address not found on Base returns balance_wei of '0' (valid but empty wallet)
- Network connectivity issues to Base RPC may return a timeout or 5xx error
- Insufficient USDC payment via x402 results in 402 Payment Required response

## How this service works

Fast, low-cost Base data for autonomous agents. No API keys, no subscriptions; pay per call with USDC over x402.

## Output

A JSON object containing the queried wallet address, the network identifier (eip155:8453 for Base mainnet), and the wallet's native ETH balance expressed in wei as a string. Example: {"address":"0x...","network":"eip155:8453","balance_wei":"1234567890000000000"}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "address": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$",
   "description": "Wallet or account address on Base mainnet."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "address": "0x0000000000000000000000000000000000000001",
  "network": "eip155:8453",
  "balance_wei": "0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mach-gallery-base-wallet-balance-38bf6802/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mach.gallery](https://www.zero.xyz/host/api.mach.gallery/llms.txt)
