hessCompare chain daily
    Updated 2022-12-13
    select date(block_timestamp) as date, 'Ethereum' as blockchain, count(DISTINCT(tx_hash)) as total_tx,
    total_tx/24 as tx_per_hour, total_tx/1440 as tx_per_minute, total_tx/86400 as tx_per_second
    from ethereum.core.fact_transactions
    where date >= current_date - {{N_Days}} and STATUS = 'SUCCESS'
    group by 1,2
    UNION
    select date(block_timestamp) as date, 'Flow' as blockchain, count(DISTINCT(tx_id)) as total_tx,
    total_tx/24 as tx_per_hour, total_tx/1440 as tx_per_minute, total_tx/86400 as tx_per_second
    from flow.core.fact_transactions
    where date >= current_date - {{N_Days}} and TX_SUCCEEDED = 'TRUE'
    group by 1,2
    UNION
    select date(block_timestamp) as date, 'Arbitrum' as blockchain, count(DISTINCT(tx_hash)) as total_tx,
    total_tx/24 as tx_per_hour, total_tx/1440 as tx_per_minute, total_tx/86400 as tx_per_second
    from arbitrum.core.fact_transactions
    where date >= current_date - {{N_Days}} and STATUS = 'SUCCESS'
    group by 1,2
    UNION
    select date(block_timestamp) as date, 'Optimism' as blockchain, count(DISTINCT(tx_hash)) as total_tx,
    total_tx/24 as tx_per_hour, total_tx/1440 as tx_per_minute, total_tx/86400 as tx_per_second
    from optimism.core.fact_transactions
    where date >= current_date - {{N_Days}} and STATUS = 'SUCCESS'
    group by 1,2
    UNION
    select date(block_timestamp) as date, 'Avalanche' as blockchain, count(DISTINCT(tx_hash)) as total_tx,
    total_tx/24 as tx_per_hour, total_tx/1440 as tx_per_minute, total_tx/86400 as tx_per_second
    from avalanche.core.fact_transactions
    where date >= current_date - {{N_Days}} and STATUS = 'SUCCESS'
    group by 1,2
    UNION
    select date(block_timestamp) as date, 'Gnosis' as blockchain, count(DISTINCT(tx_hash)) as total_tx,
    total_tx/24 as tx_per_hour, total_tx/1440 as tx_per_minute, total_tx/86400 as tx_per_second
    from gnosis.core.fact_transactions
    where date >= current_date - {{N_Days}} and STATUS = 'SUCCESS'
    group by 1,2
    UNION
    Run a query to Download Data