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.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 achainFrom 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
txNumberfield tells you how many transactions are in the block without fetching them all

