Salehn-p-TPS compare
    Updated 2022-07-20
    with lst_near as (
    select
    count(DISTINCT block_timestamp::date) as count_day
    ,count(TXN_HASH) as tx_count
    , (TX_COUNT/COUNT_DAY)/86400 as avg_TPS
    from flipside_prod_db.mdao_near.transactions
    where block_timestamp::date >= '2022-01-01'

    )
    , lst_eth as (
    select
    count(DISTINCT block_timestamp::date) as count_day
    ,count(DISTINCT TX_HASH) as tx_count
    , (TX_COUNT/COUNT_DAY)/86400 as avg_TPS
    from ethereum.core.fact_transactions
    where block_timestamp::date >= '2022-01-01'
    )
    , lst_flow as (
    select
    count(DISTINCT block_timestamp::date) as count_day
    ,count(DISTINCT TX_ID) as tx_count
    , (TX_COUNT/COUNT_DAY)/86400 as avg_TPS
    from flow.core.fact_transactions
    where block_timestamp::date >= '2022-01-01'

    )


    select 'NEAR' as type , * from lst_near
    union all
    select 'Ethereum' as type , * from lst_eth
    union all
    select 'FLOW' as type , * from lst_flow
    Run a query to Download Data