0xHaM-dAverage # of Tx per Day/Minute/Second
    Updated 2022-12-13
    WITH Tb1 as (
    select
    date_trunc(day,block_timestamp)::date as date,
    'Flow' as chain,
    count(distinct tx_id) as "# of Daily Tx",
    ("# of Daily Tx"/1440) as "Tx/Minute - TPM",
    ("# of Daily Tx"/86400) as "Tx/Sec - TPS"
    from flow.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    AND block_timestamp <= CURRENT_DATE - 1
    group by 1,2

    union ALL

    select
    date_trunc(day,block_timestamp)::date as date,
    'Ethereum' as chain,
    count(distinct tx_hash) as "# of Daily Tx",
    ("# of Daily Tx"/1440) as "Tx/Minute - TPM",
    ("# of Daily Tx"/86400) as "Tx/Sec - TPS"
    from ethereum.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    AND block_timestamp <= CURRENT_DATE - 1
    group by 1,2

    union ALL

    select
    date_trunc('day',block_timestamp)::date as "Date",
    'Cosmos' as chain,
    count(distinct tx_id) as "# of Daily Tx",
    ("# of Daily Tx"/1440) as "Tx/Minute - TPM",
    ("# of Daily Tx"/86400) as "Tx/Sec - TPS"
    from cosmos.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    AND block_timestamp <= CURRENT_DATE - 1
    Run a query to Download Data