Skip to main content
The indexer block endpoints give you structured block data with full transaction counts, timestamps, and chain metadata. Unlike the raw node, the indexer stores historical block data in a queryable format making it easy to browse the chain by height or time range.

Get block by hash

Returns full details of a block including its transactions.
mainChain: true means this block is part of the canonical chain. Orphaned blocks return mainChain: false.

Get blocks in a time range

Returns all blocks produced within a timestamp range across all chain shards. Timestamps are in milliseconds.
The response is a nested array, the outer array represents chain shards and the inner arrays contain the blocks for each shard.

Get block at height

Returns the canonical block at a specific height for a chain shard.

Get latest blocks

Returns the most recently produced blocks across all chain shards.

Get transactions in a block

Returns all transactions included in a block.

Understanding Alephium’s block structure

Alephium is a sharded chain. At any given height there are multiple blocks produced in parallel, one per chain shard. Each shard is identified by a chainFrom and chainTo pair, both between 0 and 3. That means at each height there are up to 16 blocks (4 groups × 4 groups). When browsing blocks, keep in mind:
  • Block height alone does not uniquely identify a block, you need height + fromGroup + toGroup
  • A block hash uniquely identifies a block across all shards
  • The txNumber field tells you how many transactions are in the block without fetching them all

Parameters reference