optimism.gov Table: fact_delegations Type: View
This table contains the details of the OP Delegations made by users on the Optimism network.
Columns
| Column Name | Data Type | Description |
|---|---|---|
| BLOCK_NUMBER | NUMBER | Sequential counter representing the position of a block in the blockchain since genesis (block 0). |
- Immutable once finalized
- Primary ordering mechanism for blockchain data
- Increments by 1 for each new block
- Used as a proxy for time in many analyses
- Set by block producer
- Can have minor variations (±15 seconds)
- Always increasing (newer blocks = later timestamps)
- Primary key for transaction lookups
- Join key for traces, logs, and token transfers
- Immutable once confirmed
0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060 | | STATUS | TEXT
| The status of the tx, can be āSuccessā or āFailedā | | EVENT_NAME | TEXT | | | DELEGATOR | TEXT |
The address of the delegator | | DELEGATE | TEXT | The address of the delegate | | DELEGATION_TYPE |
TEXT | The type of delegation, can be āFirst Time Delegatorā, āSelf Delegationā, āRe-Delegationā or
āFirst Time Delegator - Self Delegationā | | NEW_BALANCE | FLOAT | The new amount the user has
delegated after the transaction | | PREVIOUS_BALANCE | FLOAT | The amount of OP the user had
delegated before the transaction | | RAW_NEW_BALANCE | NUMBER | The new amount the user has
delegated after the transaction in raw format | | RAW_PREVIOUS_BALANCE | NUMBER | The amount of OP
the user had delegated before the transaction in raw format | | TO_DELEGATE | TEXT | The address of
the delegate to which the delegator has delegated their votes | | FROM_DELEGATE | TEXT | The address
of the delegate from which the delegator has delegated their votes | | FACT_DELEGATIONS_ID | TEXT |
Primary key - unique identifier for each row ensuring data integrity.
Format: Usually VARCHAR containing composite key generated using MD5 hash of the relevant
columns. Example: MD5(block_number, tx_hash, trace_index)
Usage:
- Deduplication in incremental loads
- Join operations for data quality checks
- Troubleshooting specific records
- Data freshness monitoring
- Incremental processing markers
- Debugging data pipeline issues
- SLA tracking