# Base Block Explorer Search

> Base Block Explorer Search is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-02).

Look up a Base (L2) block by number or hash to retrieve timestamp, transaction count, gas used/limit, base fee, and explorer link — or fetch the latest block if no selector is given.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/base-block-explorer-search?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-block-explorer-search-48c45e95
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oasOno9kF_-ck3gyfYOi9

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-block-explorer-search-48c45e95
```

Example prompt: Can you look up Base block number 20000000 and tell me its timestamp, how many transactions it included, and the gas used?

## When to prefer this

Use this endpoint when you specifically need on-chain block metadata for the Base (Coinbase L2) network — timestamp, gas stats, base fee, or a direct BaseScan explorer link. Prefer it over generic Ethereum block lookers when targeting Base (eip155:8453) specifically. It accepts both block numbers and hashes, and defaults to the latest block with no input.

## Known failure modes

- Block number out of range (>= 1e9) returns validation error
- Invalid block hash format (not 0x + 64 hex chars) returns schema error
- Block not yet confirmed returns not found response
- Network connectivity issues to Base RPC may result in timeout
- Non-existent block hash returns found:false in response

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

A JSON object containing: block number, block hash, parent hash, miner address, block size, transaction count, gas used, gas limit, base fee in gwei, Unix timestamp, ISO timestamp, explorer URL (basescan.org), network identifier (eip155:8453), whether the result was cached, and price paid in USD.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "block": {
       "anyOf": [
        {
         "type": "integer",
         "maximum": 999999999,
         "minimum": 0
        },
        {
         "type": "string",
         "pattern": "^[0-9]{1,10}$"
        }
       ],
       "description": "Decimal block number >= 0 and < 1e9; omit both selectors for latest"
      },
      "block_hash": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{64}$",
       "description": "Block hash; takes precedence over block"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hash": "0xabababababababababababababababababababababababababababababababab",
  "size": 15000,
  "found": true,
  "miner": "0x0000000000000000000000000000000000000000",
  "cached": false,
  "number": 20000000,
  "network": "eip155:8453",
  "product": "scanpay.base_block",
  "as_of_ms": 1720000000000,
  "gas_used": 10000000,
  "gas_limit": 30000000,
  "price_usd": 0.001,
  "timestamp": 1720000000,
  "parent_hash": "0xcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd",
  "explorer_url": "https://basescan.org/block/20000000",
  "base_fee_gwei": 0.001,
  "timestamp_iso": "2024-07-03T09:46:40+00:00",
  "transactions_count": 100
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-block-explorer-search-48c45e95/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
