Skip to main content

blocks

Schema: public

Description

The blocks table contains high-level metadata about each block we've ingested.

Columns

Column NameData TypeDescription
idbpchar(44)The unique identifier for the block.
block_timetimestamptzThe timestamp of the block.
block_hashtextThe unique hash of the block.
block_numbernumericThe number of the block.
chaintextThe blockchain this block belongs to.

Example

Get block count over the past day for Avalanche
select count(1) block_count
from blocks
where block_time > now() - '1 day'::interval
and chain = 'avalanche';