# Mach Gallery Base Nonce Lookup

> Mach Gallery Base Nonce Lookup 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 current transaction nonce for an EVM address on the Base blockchain (chain ID 8453)

## Facts

- Endpoint: POST https://api.mach.gallery/api/base/nonce?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-nonce-lookup-8fbaaad6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jmYg7BjJ6wXhgAdUVLx6H

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-nonce-lookup-8fbaaad6 -d '<json body>'
```

Example prompt: What's the current nonce for the Base address 0x1234567890abcdef1234567890abcdef12345678? I need it before I sign my next transaction.

## When to prefer this

Use this endpoint when you need a fast, keyless, pay-per-call nonce lookup for an EVM address on Base mainnet without managing API subscriptions. Ideal for autonomous agents that need the current transaction count before constructing or signing Base transactions. Prefer this over self-hosted RPC calls when you want metered, low-cost access without RPC node management.

## Known failure modes

- Invalid address format (not a valid 0x-prefixed 20-byte hex string) returns an error
- Address not found or never used on Base returns nonce 0
- Network outage or RPC unavailability returns a 5xx error
- Payment failure via x402 if USDC balance is insufficient
- Malformed request body returns a 400-level error

## 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

Returns a JSON object with the integer nonce (number of transactions sent from the address) and the network identifier in CAIP-2 format (e.g. 'eip155:8453' for Base mainnet).

## 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": {
  "nonce": 0,
  "network": "eip155:8453"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mach-gallery-base-nonce-lookup-8fbaaad6/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)
