Ankr · Arazzo Workflow

Ankr Block And Log Inspection

Version 1.0.0

Read full blocks for a range, then pull event logs from the same range.

1 workflow 1 source API 1 provider
View Spec View on GitHub ArazzoWorkflows

Provider

ankr

Workflows

block-log-inspection
Read blocks for a range, then the event logs from that range.
Retrieves full block data for a block range on a chain and then the event logs emitted over the same range, optionally scoped to specific contracts.
2 steps inputs: address, blockchain, fromBlock, toBlock outputs: blocks, logs
1
getBlocks
Retrieve the full block data for the supplied block range, including transactions and logs.
2
getLogs
Retrieve the event logs emitted over the same block range, scoped to the supplied contract addresses when provided.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Ankr Block And Log Inspection
  summary: Read full blocks for a range, then pull event logs from the same range.
  description: >-
    Inspects on-chain activity for a block range by first pulling the full blocks
    with ankr_getBlocks and then the event logs emitted in the same range with
    ankr_getLogs, optionally filtered to a set of contract addresses. Each step is
    written out inline as a JSON-RPC call so the flow can be read and executed
    without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: queryApi
  url: ../openapi/ankr-query-api-openapi.yml
  type: openapi
workflows:
- workflowId: block-log-inspection
  summary: Read blocks for a range, then the event logs from that range.
  description: >-
    Retrieves full block data for a block range on a chain and then the event
    logs emitted over the same range, optionally scoped to specific contracts.
  inputs:
    type: object
    required:
    - blockchain
    - fromBlock
    - toBlock
    properties:
      blockchain:
        type: string
        description: The chain to inspect.
      fromBlock:
        type: integer
        description: First block of the range.
      toBlock:
        type: integer
        description: Last block of the range.
      address:
        type: array
        items:
          type: string
        description: Optional list of contract addresses to scope log results to.
  steps:
  - stepId: getBlocks
    description: >-
      Retrieve the full block data for the supplied block range, including
      transactions and logs.
    operationId: ankrGetBlocks
    requestBody:
      contentType: application/json
      payload:
        jsonrpc: "2.0"
        id: 1
        method: ankr_getBlocks
        params:
          blockchain: $inputs.blockchain
          fromBlock: $inputs.fromBlock
          toBlock: $inputs.toBlock
          includeLogs: true
          includeTxs: true
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      blocks: $response.body#/result
  - stepId: getLogs
    description: >-
      Retrieve the event logs emitted over the same block range, scoped to the
      supplied contract addresses when provided.
    operationId: ankrGetLogs
    requestBody:
      contentType: application/json
      payload:
        jsonrpc: "2.0"
        id: 1
        method: ankr_getLogs
        params:
          blockchain: $inputs.blockchain
          fromBlock: $inputs.fromBlock
          toBlock: $inputs.toBlock
          address: $inputs.address
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      logs: $response.body#/result
  outputs:
    blocks: $steps.getBlocks.outputs.blocks
    logs: $steps.getLogs.outputs.logs

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/ankr-block-log-inspection-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.