# Joe EVM RPC – Block Number

> Joe EVM RPC – Block Number is a paid API for AI agents from joe-evm-rpc.marnick-yezo.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Returns the current block number (chain tip) for Base or Ethereum mainnet via a pay-per-call RPC proxy.

## Facts

- Endpoint: GET https://joe-evm-rpc.marnick-yezo.workers.dev/api/chain/block-number
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/joe-evm-rpc-block-number-324a9798
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0MpXfGKvj8Ja0s-VxmVba

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 joe-evm-rpc-block-number-324a9798
```

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

## When to prefer this

Choose this endpoint when your agent needs to know the current block tip on Base or Ethereum mainnet with minimal setup — it wraps the raw RPC call behind a simple REST GET with x402 micropayment, so there's no need to manage provider API keys or configure a full Web3 connection. Prefer it for lightweight chain-height polling, liveness checks, and block-based triggers in AI agent workflows.

## Known failure modes

- Invalid or unsupported network value returns an error (only 'base' and 'ethereum' are accepted)
- Network RPC unavailability causes a 5xx or timeout response
- x402 payment failure (insufficient balance or wallet misconfiguration) results in a 402 Payment Required error before the RPC call is made
- Rate limits or worker capacity issues may cause transient 429 or 503 errors

## How this service works

Live Base and Ethereum RPC for AI agents: block tip, balances, transactions, and ENS. $0.001 USDC per call on Base.

## Output

A JSON response containing the current block number as a hex string (e.g. '0x12a05f2'), along with metadata: the RPC endpoint used, the network queried (base or ethereum), the cost in USDC ($0.001), and a unique request ID for tracing.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "pathParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "network": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "default": "base",
       "description": "EVM network. Default base."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "result": "0x12a05f2"
  },
  "meta": {
   "rpc": "https://mainnet.base.org",
   "network": "base",
   "endpoint": "/api/chain/block-number",
   "cost_usdc": "0.001",
   "request_id": "00000000abcdef01"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/joe-evm-rpc-block-number-324a9798/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from joe-evm-rpc.marnick-yezo.workers.dev](https://www.zero.xyz/host/joe-evm-rpc.marnick-yezo.workers.dev/llms.txt)
