mmdrezamain tps
    Updated 2023-01-17
    with ethereum as (
    select
    'Ethereum TPS' as type,
    date_trunc('day',block_timestamp) as date,
    count(distinct tx_hash)/86400 as tps
    from ethereum.core.fact_transactions
    where block_timestamp >= '2022-05-01'
    group by 1,2
    order by 2 asc
    ),

    optimism as (
    select
    date_trunc('day',block_timestamp) as date,
    count(distinct tx_hash)/86400 as op_tps
    from optimism.core.fact_transactions
    where block_timestamp >= '2022-05-01'
    group by 1
    order by 1 asc
    ),

    arbitrum as (
    select
    date_trunc('day',block_timestamp) as date,
    count(distinct tx_hash)/86400 as arb_tps
    from arbitrum.core.fact_transactions
    where block_timestamp >= '2022-05-01'
    group by 1
    order by 1 asc
    ),

    arbitrum_optimism as (
    select
    'Optimism + Arbitrum TPS' as type,
    optimism.date,
    sum(op_tps+arb_tps) as op_tps
    Run a query to Download Data