# skills.onesource.io Ethereum Block Header Fetch

> skills.onesource.io Ethereum Block Header Fetch is a paid API for AI agents from skills.onesource.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Fetches an Ethereum block header and its transaction hashes by block number, tag, or hex value via eth_getBlockByNumber

## Facts

- Endpoint: GET https://skills.onesource.io/api/chain/block/0x1212D00
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/skills-onesource-io-05c80844
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GaMYwjS34kKaajPup-_Br

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-05c80844
```

Example prompt: Can you fetch the block header and transaction hashes for Ethereum block number 0x1212D00 on mainnet — I need the timestamp, miner, gas used, and the list of tx hashes in that block.

## When to prefer this

Use this endpoint when you need block-level metadata (header fields, transaction list) for a specific block on Ethereum or supported EVM chains (Base, Avalanche, Sepolia, MegaETH). Prefer this over transaction-level endpoints when you need block context rather than individual transaction details, and over full-block endpoints when you only need the header and tx hashes rather than full transaction objects.

## Known failure modes

- Block number out of range or future block — returns null or error
- Invalid hex format for block number — schema validation error
- Unsupported network value — enum validation failure
- Block tag 'pending' may return null on networks without a mempool
- RPC timeout or upstream node error — 5xx or gateway timeout

## How this service works

Fetch an Ethereum block header and transaction hashes by number, tag, or hex via eth_getBlockByNumber

## Output

Returns the block header fields (number, hash, parentHash, miner, timestamp, gasUsed, gasLimit, difficulty, etc.) along with a list of transaction hashes included in that block, as returned by eth_getBlockByNumber on the requested network.

## Example request

```json
{
 "number": "latest",
 "network": "ethereum"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "number": {
   "oneOf": [
    {
     "type": "integer",
     "minimum": 0
    },
    {
     "enum": [
      "latest",
      "pending",
      "earliest",
      "safe",
      "finalized"
     ],
     "type": "string"
    },
    {
     "type": "string",
     "pattern": "^0x[a-fA-F0-9]+$"
    }
   ]
  },
  "network": {
   "enum": [
    "ethereum",
    "sepolia",
    "avax",
    "megaeth",
    "megaeth-testnet",
    "base"
   ],
   "type": "string",
   "default": "ethereum"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "_truncated",
  "_originalSize"
 ],
 "properties": {
  "_truncated": {
   "type": "boolean"
  },
  "_originalSize": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/skills-onesource-io-05c80844/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)
