Skip to main content

Table description

The events table (e.g. polkadot.events) holds all events that occur on the chain, including their pallet section and method, as well as the decoded data involved in the event. Common queries on the events table will typically filter on block_time, section and method and extract JSON encoded information in data or decoded_data.

Table Schema

ColumnTypeDescription
yearINTEGERCalendar year of the block (partition column)
monthINTEGERCalendar month of the block (partition column)
sectionVARCHARThe pallet (module) that emitted this event (e.g. Balances, System)
methodVARCHARThe event method name within the pallet (e.g. Transfer, ExtrinsicSuccess)
block_timeTIMESTAMPThe timestamp of the block containing this event
block_numberBIGINTThe sequential number of the block containing this event
extrinsic_idVARCHARIdentifier of the extrinsic that triggered this event
event_idVARCHARUnique identifier for this event (format: blockNumber-eventIndex)
dataVARCHARJSON-encoded event data
extrinsic_hashVARBINARYHash of the extrinsic that triggered this event
block_hashVARBINARYHash of the block containing this event
data_decodedVARCHARHuman-readable decoded event data
updated_atTIMESTAMPWhen this record was last updated in the database
ingested_atTIMESTAMPWhen this record was first ingested into the database

Table Sample