freemartianNative Chains Unique Users
    Updated 2022-06-22
    select
    count(distinct tx_hash) as frequency,
    count(distinct origin_from_address) as User_count,
    date_trunc('week', block_timestamp) as TIME,
    case
    when origin_to_address = '0xa0c68c638235ee32657e8f720a23cec1bfc77c77' then 'Polygon'
    when origin_to_address = '0x72ce9c846789fdb6fc1f34ac4ad25dd9ef7031ef' then 'Arbitrum'
    when origin_to_address = '0x99c9fc46f92e8a1c0dec1b1747d010903e884be1' then 'Optimism'
    else 'others'
    end as Native_Chain
    from ethereum.core.fact_event_logs
    where Native_Chain != 'others'
    group by Native_Chain, TIME
    Run a query to Download Data