Skip to content
Eden Engine

Block by Number on an EVM Chain

evmrpc/block

One block of an EVM chain by number: hash, parent, timestamp, gas used and limit, base fee in wei, miner or sequencer, and up to 100 transaction hashes (with the total count). Only nodes measured to serve old blocks are asked; a block they do not have, or one past the head, is found false. Read from public nodes that offer no SLA and can be slow, throttled or a block behind; a failing node is replaced by another operator's automatically. Served by Eden Engine; not an official product of any chain or node operator.

activeper callv1

Price

$0.0026 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $0.50.

Data source

Public blockchains

On-chain data read from public blockchain nodes; no licence or credit is required. Served by Eden Engine; not an official product of any chain or node operator.

Use it

Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.

Connect once and your AI can find and run this tool, and any other it needs.

agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "evmrpc/block" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "evmrpc/block" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "evmrpc/block", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "evmrpc/block", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0026
Updated
Oct 21, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "chain",
    "block_number"
  ],
  "properties": {
    "chain": {
      "enum": [
        "ethereum",
        "base",
        "arbitrum",
        "optimism",
        "bsc"
      ],
      "type": "string",
      "description": "chain slug; see evmrpc/chain-info for ids and names"
    },
    "block_number": {
      "type": "string",
      "pattern": "^0x(0|[1-9a-f][0-9a-f]{0,14})$",
      "description": "The block number as a lowercase hex quantity with no leading zeros, as nodes write it: 0x1312d00 is block 20,000,000."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "found"
  ],
  "properties": {
    "hash": {
      "type": [
        "string",
        "null"
      ],
      "description": "The block hash."
    },
    "found": {
      "type": "boolean",
      "description": "False when the node has no such item (an unknown or not-yet-mined hash, a block past the head); then no other field is present."
    },
    "miner": {
      "type": [
        "string",
        "null"
      ],
      "description": "The address that received the block reward or fees (the validator or sequencer)."
    },
    "number": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The block number."
    },
    "gas_used": {
      "type": [
        "integer",
        "null"
      ]
    },
    "gas_limit": {
      "type": [
        "integer",
        "null"
      ]
    },
    "timestamp": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Unix time in seconds."
    },
    "size_bytes": {
      "type": [
        "integer",
        "null"
      ]
    },
    "parent_hash": {
      "type": [
        "string",
        "null"
      ]
    },
    "transactions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Transaction hashes, the first 100 only (see transactions_truncated)."
    },
    "timestamp_iso": {
      "type": [
        "string",
        "null"
      ],
      "description": "The timestamp as an ISO 8601 UTC time."
    },
    "transaction_count": {
      "type": "integer",
      "description": "How many transactions the block holds."
    },
    "base_fee_per_gas_wei": {
      "type": [
        "string",
        "null"
      ],
      "description": "Base fee per gas in wei, an exact decimal string; null on a chain without one."
    },
    "transactions_truncated": {
      "type": "boolean",
      "description": "True when the block holds more than 100 transactions."
    }
  },
  "description": "One block summary, or found false if the node has no such block.",
  "additionalProperties": false
}