optimism.core Table: dim_contracts Type: Base Table
What
This table provides comprehensive metadata for all smart contracts deployed on EVM blockchains. It includes contract names, symbols, decimals, and deployment details read directly from the blockchain.Key Use Cases
- Identifying contracts by name, symbol, or address
- Understanding token properties (decimals, symbols)
- Tracking contract deployment patterns and trends
- Finding contracts deployed by specific factories or deployers
- Filtering protocol-specific data across other tables
Important Relationships
- Join with fact_transactions: Use
address = to_addressfor contract interactions - Join with fact_event_logs: Use
address = contract_addressfor contract events - Join with ez_token_transfers: Use
address = contract_addressfor token movements
Commonly-used Fields
address: The deployed contract’s blockchain address (lowercase)name: Human-readable contract name from the name() functionsymbol: Token/contract symbol from the symbol() functiondecimals: Number of decimal places for token amountscreator_address: Address that deployed this contractcreated_block_timestamp: When the contract was created
Sample queries
Find All Uniswap V3 Pool ContractsColumns
| Column Name | Data Type | Description |
|---|---|---|
| ADDRESS | TEXT | Unique identifier - the deployed contract’s blockchain address. |
- 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