Moetxs and users tot
    Updated 2024-09-27
    with base as
    (select
    date_trunc('hour',block_Timestamp) as hours,
    'Blast' as chain ,

    count(distinct from_address) as users,
    count(distinct tx_hash) as txs,
    txs / users as tx_per_user
    FROM blast.core.fact_transactions
    where block_timestamp > '2024-02-29 10:00:00.000'
    GROUP BY 1
    union all
    SELECT
    date_trunc(hour,block_timestamp) as hours,
    'Arbitrum' as chain ,
    count(distinct from_address) as users,
    count(distinct tx_hash) as txs,
    txs / users as tx_per_user
    FROM Arbitrum.core.fact_transactions
    where block_timestamp > '2024-02-29 10:00:00.000'

    GROUP BY hours
    union all
    SELECT
    date_trunc(hour,block_timestamp) as hours,
    'Polygon' as chain ,
    count(distinct from_address) as users,
    count(distinct tx_hash) as txs,
    txs / users as tx_per_user
    FROM Polygon.core.fact_transactions
    where block_timestamp > '2024-02-29 10:00:00.000'

    GROUP BY hours
    union all
    SELECT
    date_trunc(hour,block_timestamp) as hours,
    QueryRunArchived: QueryRun has been archived