Skip to main content

Table description

The blocks table stores basic information about Substrate blocks, with one record per block, including the block hash and statistics on the number of extrinsics, events, and transfers contained in each block.

Table Schema

ColumnTypeDescription
yearINTEGERCalendar year of the block (partition column)
monthINTEGERCalendar month of the block (partition column)
dayINTEGERCalendar day of the block (partition column)
block_timeTIMESTAMPThe timestamp when the block was produced
numberBIGINTThe sequential block number
spec_versionBIGINTRuntime specification version active at this block
relay_block_numberBIGINTCorresponding relay chain block number (for parachains)
hashVARBINARYUnique hash identifying this block
parent_hashVARBINARYHash of the preceding block
state_rootVARBINARYRoot hash of the state trie after this block
extrinsics_rootVARBINARYRoot hash of the extrinsics trie for this block
author_ss58VARCHARSS58-encoded address of the block author/validator
author_pub_keyVARBINARYPublic key of the block author/validator
relay_state_rootVARBINARYState root of the relay chain at this block (for parachains)
extrinsic_countBIGINTNumber of extrinsics included in this block
event_countBIGINTNumber of events emitted in this block
transfer_countBIGINTNumber of token transfers in this block
trace_countBIGINTNumber of traces recorded for this block
updated_atTIMESTAMPWhen this record was last updated in the database
ingested_atTIMESTAMPWhen this record was first ingested into the database

Table Sample