Skip to main content
Alephium uses a sharding algorithm called BlockFlow. The chain is split into groups, and blocks are produced per group pair. Most blockflow endpoints require fromGroup and toGroup parameters, both can be 0, 1, 2, or 3.

Get chain info

Returns the current height of a specific chain shard.

Get block hashes at height

Returns all block hashes at a given height for a chain shard.

Get a block by hash

Returns full block data including transactions.

Get blocks in a time range

Returns all blocks produced within a timestamp range. Timestamps are in milliseconds.

Get the main chain block at height

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

Get blocks with events

Returns blocks along with the contract events emitted in those blocks. Useful for indexing contract activity.

Is a block in the main chain

Checks whether a given block hash is part of the canonical chain.

Parameters reference