# EVM Latest Block and Gas Price

> EVM Latest Block and Gas Price is a paid API for AI agents from apexfaucet.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-27).

Returns the latest block number, transaction count, block time, and gas price for a specified EVM chain (Ethereum, Base, Arc, or BNB).

## Facts

- Endpoint: GET https://apexfaucet.xyz/api/x402/evm-block?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/evm-latest-block-and-gas-price-8e211e0c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l3BKGObXmHF5hY3u55qQr

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 evm-latest-block-and-gas-price-8e211e0c
```

Example prompt: What's the current block number and gas price on Base right now?

## When to prefer this

Use this endpoint when you need real-time EVM chain state — specifically latest block number, gas price, and block freshness — across Ethereum, Base, Arc, or BNB chains in a single cheap call ($0.001 USDC). Prefer this over free public RPC calls when you need a hosted, reliable, payable API that integrates with the x402 payment protocol and covers multiple chains with a single interface.

## Known failure modes

- Unsupported chain value returns an error (only ethereum, base, arc, bnb are valid)
- RPC node unavailability for the requested chain may cause failure or stale data
- Payment failure via x402 protocol will block the response
- Network timeout if the underlying EVM node is slow to respond

## How this service works

Free APEX on X1, and free USDC plus APEX on Arc, three times a day. No gas, no sign-up. Plus a swap, a screener, APEX City and token checks.

## Output

A JSON object with ok status, and a data object containing: block number, chain name, chain ID, transaction count in the latest block, block timestamp (ISO 8601), block age in seconds, base fee in gwei, and gas price in gwei. Also includes the amount paid (0.001 USDC).

## 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": {
      "chain": {
       "enum": [
        "ethereum",
        "base",
        "arc",
        "bnb"
       ],
       "type": "string",
       "description": "Chain to read: ethereum, base, arc or bnb. Default ethereum."
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "properties": {
   "ok": {
    "type": "boolean"
   },
   "data": {
    "type": "object"
   },
   "paid": {
    "type": "number"
   }
  }
 },
 "example": {
  "ok": true,
  "data": {
   "ok": true,
   "block": 52559420,
   "chain": "base",
   "chainId": 8453,
   "txCount": 130,
   "blockTime": "2026-10-13T16:16:27.000Z",
   "ageSeconds": 2,
   "baseFeeGwei": "0.005",
   "gasPriceGwei": "0.006"
  },
  "paid": 0.001
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/evm-latest-block-and-gas-price-8e211e0c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apexfaucet.xyz](https://www.zero.xyz/host/apexfaucet.xyz/llms.txt)
