Skip to content
Eden Engine

Event Logs of One Block on an EVM Chain

evmrpc/logs

The event logs emitted in ONE block, chosen by block hash, optionally only those of one contract address and matching the first topics (topic 0 is the event signature hash). Up to 200 logs are returned, with the total count. One block at a time on purpose: public nodes disagree wildly on how wide a block range they will serve. 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/logs" })

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

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "evmrpc/logs", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "evmrpc/logs", 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_hash"
  ],
  "properties": {
    "chain": {
      "enum": [
        "ethereum",
        "base",
        "arbitrum",
        "optimism",
        "bsc"
      ],
      "type": "string",
      "description": "chain slug; see evmrpc/chain-info for ids and names"
    },
    "topics": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^0x[0-9a-fA-F]{64}$"
      },
      "maxItems": 4,
      "description": "Only logs whose first topics equal these, in order: topic 0 is the event signature hash (keccak of Transfer(address,address) is 0xddf252ad...). Leave out for every event. A wildcard position is not supported; filter the result instead."
    },
    "address": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "Only logs emitted by this contract. Leave out for every contract."
    },
    "block_hash": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{64}$",
      "description": "The 32-byte hash of the block to read logs from: 0x followed by 64 hex digits. Get it from the block tools."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "count",
    "logs",
    "truncated"
  ],
  "properties": {
    "logs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "description": "The log data as hex, cut at 2,048 hex digits (see data_truncated)."
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Topic 0 is the event signature hash; the rest are indexed arguments."
          },
          "address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The contract that emitted the log."
          },
          "removed": {
            "type": "boolean"
          },
          "log_index": {
            "type": [
              "integer",
              "null"
            ]
          },
          "block_number": {
            "type": [
              "integer",
              "null"
            ]
          },
          "data_truncated": {
            "type": "boolean"
          },
          "transaction_hash": {
            "type": [
              "string",
              "null"
            ]
          },
          "transaction_index": {
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "additionalProperties": false
      },
      "description": "The first 200 logs."
    },
    "count": {
      "type": "integer",
      "description": "How many logs the block had for this filter."
    },
    "truncated": {
      "type": "boolean",
      "description": "True when count is above 200."
    }
  },
  "description": "The matching logs of one block.",
  "additionalProperties": false
}