DeFiScholarSession 2: Tables + block explorer introduction + jsons copy
    Updated 2025-03-22
    -- forked from sam / Session 2: Tables + block explorer introduction + jsons @ https://flipsidecrypto.xyz/sam/q/hXX-BVVcfNaq/session-2-tables-block-explorer-introduction-jsons

    /*
    "core" tables or fact tables
    ez tables - easy
    dim tables

    fact blocks - base fee, tx count
    fact transactions - to address, tx_fee, tps, gas price
    fact event logs - events emitted
    fact traces - contracts created

    ez dex swaps
    ez nft sales
    ez decoded event logs

    json
    case when

    lido https://etherscan.io/tx/0x24b74e6486f9d674d5e00864d12792d91c886b0b75e6349a2308087ee0c416fa
    swap https://etherscan.io/tx/0x28048dbf44a2f5a90685c260cfcf38c2c6156bac1a5f566ea38d0654295f5a64#eventlog

    */


    -- select * from ethereum.nft.ez_nft_sales
    -- where block_timestamp::date >= '2025-01-01'
    -- and tx_hash = '0xbfc910485de40b669c132e19642a952002028b211df100c1ce8a73c4056b608c'
    -- --limit 10

    -- decoded event logs table

    -- website -> api endpoints

    -- contracts -> abi

    QueryRunArchived: QueryRun has been archived