# Mach Gallery Base Block Number

> Mach Gallery Base Block Number 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 block number on the Base (EVM chain eip155:8453) network, paid per call via x402 USDC microtransaction.

## Facts

- Endpoint: GET https://api.mach.gallery/api/base/block-number?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-block-number-a106337f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2AoD8NDl3MTVYu3qSCEP9

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-block-number-a106337f
```

Example prompt: What's the current block number on Base mainnet right now?

## When to prefer this

Choose this endpoint when you need a lightweight, no-subscription, pay-per-call way to fetch the current Base block number without setting up API keys. Ideal for autonomous agents that need occasional on-chain timing data from Base (eip155:8453) and want to pay frictionlessly with USDC via x402.

## Known failure modes

- Payment failure via x402 if USDC balance is insufficient — returns 402 Payment Required
- Network or RPC node outage causing unavailability — returns 5xx error
- Stale block number if underlying Base RPC node is behind — no explicit error, just slightly outdated value

## How this service works

Get the current Base mainnet block number (latest chain height) for an autonomous agent.

## Output

Returns a JSON object with the network identifier (e.g. 'eip155:8453' for Base mainnet) and the current block number as an integer (e.g. 36000000).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "network": "eip155:8453",
  "block_number": 36000000
 }
}
```

## More

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