bachiflowspeed5
    Updated 2022-12-13
    with flow_txns as (
    select date_trunc('month', block_timestamp) as month,
    count (distinct tx_id) as no_of_txns,
    round(no_of_txns/(30*24*60),2) as txns_per_min
    from flow.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    group by month
    --order by month DESC
    ),

    sol_txns as (
    select date_trunc('month', block_timestamp) as month,
    count (distinct tx_id) as no_of_txns,
    round(no_of_txns/(30*24*60),2) as txns_per_min
    from solana.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    group by month
    --order by month DESC
    ),

    eth_txns as (
    select date_trunc('month', block_timestamp) as month,
    count (distinct tx_hash) as no_of_txns,
    round(no_of_txns/(30*24*60),2) as txns_per_min
    from ethereum.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    group by month
    --order by month desc
    ),

    bsc_txns as (
    select date_trunc('month', block_timestamp) as month,
    count (distinct tx_hash) as no_of_txns,
    round(no_of_txns/(30*24*60),2) as txns_per_min
    from bsc.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    Run a query to Download Data