# Ethereum Block Number (eth_blockNumber)

> Ethereum Block Number (eth_blockNumber) is a paid API for AI agents from skills.onesource.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns the latest Ethereum block height (chain tip) for a specified network via eth_blockNumber

## Facts

- Endpoint: GET https://skills.onesource.io/api/chain/block-number
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/skills-onesource-io-74da81ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X4gFbmIRq12Rckz5FSzBb

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 skills-onesource-io-74da81ee
```

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

## When to prefer this

Use this endpoint when you need the current Ethereum (or EVM-compatible) block height in real time — for example, to check chain sync status, compute block lag, anchor timestamps, or verify if a transaction has been mined. Prefer this over general blockchain explorers when you need a lightweight, programmatic, pay-per-call RPC-backed result without API key management.

## Known failure modes

- Unsupported network value returns validation error
- RPC node temporarily unavailable returns 5xx error
- Rate limiting or payment failure returns 402/429
- Malformed query parameter returns 400 bad request

## How this service works

Latest Ethereum block height - current chain tip via eth_blockNumber

## Output

Returns a hex-encoded block number (e.g. '0x17caafa') representing the current chain tip height for the requested network, along with endpoint metadata and a request ID.

## Example request

```json
{
 "network": "ethereum"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "network": {
   "enum": [
    "ethereum",
    "sepolia",
    "avax",
    "megaeth",
    "megaeth-testnet",
    "base"
   ],
   "type": "string",
   "default": "ethereum"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data",
  "meta"
 ],
 "properties": {
  "data": {
   "type": "object",
   "required": [
    "result"
   ],
   "properties": {
    "result": {
     "type": "string"
    }
   }
  },
  "meta": {
   "type": "object",
   "required": [
    "endpoint",
    "request_id"
   ],
   "properties": {
    "endpoint": {
     "type": "string"
    },
    "request_id": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/skills-onesource-io-74da81ee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from skills.onesource.io](https://www.zero.xyz/host/skills.onesource.io/llms.txt)
