capabilities.work

Block And Log Inspection

A 2-step recipe with Ankr. We can help you get access.

Recipe · 2 steps

Block And Log Inspection

with Ankr

Read blocks for a range, then the event logs from that range.

  1. Retrieve the full block data for the supplied block range, including transactions and logs.
  2. Retrieve the event logs emitted over the same block range, scoped to the supplied contract addresses when provided.
What you'll need to have ready
  • blockchain: The chain to inspect.
  • fromBlock: First block of the range.
  • toBlock: Last block of the range.
  • address: Optional list of contract addresses to scope log results to.
For your developer

Arazzo workflow ankr:block-log-inspection, 2 operations: ankrGetBlocks → ankrGetLogs. Specs on APIs.io.