# MACH Base Block Lookup

> MACH Base Block 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).

Fetches a specific block from the Base mainnet blockchain by block number or hash, returning full block data

## Facts

- Endpoint: POST https://api.mach.gallery/api/base/block?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-base-block-lookup-2574ab4f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n0dywVu3K-keH96HA6EtH

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-base-block-lookup-2574ab4f -d '<json body>'
```

Example prompt: Can you look up block 36000000 on Base mainnet and show me the block data?

## When to prefer this

Choose this endpoint when you need to fetch a specific Base mainnet block by number or hash without setting up your own RPC node or managing API keys. It is ideal for lightweight, pay-per-call agent workflows that need occasional block lookups without a subscription. Prefer alternatives (e.g., a full Ethereum node or Alchemy/Infura) if you need high-volume batch queries, real-time streaming, or data from chains other than Base (eip155:8453).

## Known failure modes

- Block not found: returns found=false if the block number or hash does not exist on Base
- Invalid input: non-numeric string or negative integer may return an error
- Payment failure: x402 micropayment of $0.005 USDC must succeed before the response is returned
- Network issues: upstream Base node unavailability may cause timeouts or errors

## 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 containing the full block data object, a boolean 'found' flag indicating whether the block exists, the network identifier (eip155:8453 for Base mainnet), and the resolved block number.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "block": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "integer",
     "minimum": 0
    }
   ],
   "description": "Base block selector: block number or tag such as latest, safe, finalized, pending or earliest."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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