Data Structure Indexer API
Introduction
Overview of the Data Structure Indexer API
Overview
The Data Structure Indexer API provides a convenient way to query and verify on-chain data structures—particularly Merkle Mountain Range (MMR) accumulators and remappers that map timestamps to block numbers. Built on top of these cryptographic accumulators, the API supplies endpoints for retrieving proofs, peaks, and other metadata, allowing developers to validate and explore block data from various chains.
Key Concepts
Accumulators
An accumulator is a data structure (in this case, a Merkle Mountain Range) used to store and prove the inclusion of block headers. The API:
- Lists all accumulators on a given chain (and the chains they reference).
- Provides Merkle proofs to confirm block header inclusion in an MMR.
- Exposes helper data like the MMR’s root hash, size, and peaks.
Remappers
A remapper is another MMR-based construction used for mapping timestamps to block numbers and verifying these relationships. The API includes:
- Endpoints to fetch the remapper peaks, which reveal the top-level hashes of the structure.
- Binary search path retrieval by timestamp to pinpoint a matching block number.
- Block-to-timestamp mappings, enabling cross-chain time-based lookups.