# skills.onesource.io Ethereum Block by Number

> skills.onesource.io Ethereum Block by Number 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-13).

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

## Facts

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

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-e6979870
```

Example prompt: What's in Ethereum block number 20000000 on mainnet — give me the block header and transaction hashes.

## When to prefer this

Use this endpoint when you need on-chain block metadata or the list of transaction hashes in a specific block on Ethereum, Base, Avalanche, Sepolia, or MegaETH. Prefer over raw RPC calls when you want a simple REST interface with predictable pricing. Best for agents that need to inspect block timestamps, gas usage, miner info, or enumerate transactions in a block without running a full node.

## Known failure modes

- Block number not yet mined returns null or 404
- Invalid hex format for block number returns 400 validation error
- Unsupported network value returns 400 or 422
- 'pending' tag may return null on non-Ethereum networks
- Network RPC unavailable returns 500 or timeout
- Payment failure (x402) returns 402 Payment Required

## 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, timestamp, miner, gasUsed, gasLimit, baseFeePerGas, etc.) and an array of transaction hashes included in that block for the specified network.

## Example request

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

## More

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