Skip to content
onelayer.
All tools

Tool detail

block

Returns block details (timestamp, tx count, gas used, base fee, sample tx hashes) for the latest or a specified block on one of five EVM chains.

Categories: Onchain data

Use when

  • look up the latest block on Ethereum, Base, Arbitrum, Optimism or Polygon
  • get block timestamp or gas used for a specific block number
  • check current chain head / block height for an EVM chain

Not for

  • not a full block explorer — only sample tx hashes, not the full tx list
  • Solana accepted for payment only — Solana chain data is not queryable here

Inputs

GET query params: chain (string, optional, default base; ethereum/base/arbitrum/optimism/polygon), number (string, optional, default latest)

Admitted input schema

{
  "type": "object",
  "properties": {
    "chain": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "ethereum, base (default), arbitrum, optimism, polygon"
    },
    "number": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Optional block number, default latest"
    }
  },
  "required": [],
  "additionalProperties": false
}

Endpoint

Method
GET
URL
https://api.x402node.dev/chain/block

Payment

Protocol
x402
Listed price
0.004 USDC per call on Base
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
GET https://api.x402node.dev/chain/block
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z