Sbhn_NPPast 30 Days Summary
    Updated 2024-08-03
    select 'Flow' as chain,
    sum(transaction_count) as txs,
    sum(unique_from_count) as users,
    sum(total_fees_usd) as fees,
    sum(TRANSACTION_COUNT_SUCCESS) as success,
    sum(TRANSACTION_COUNT_FAILED) as failed
    from flow.stats.ez_core_metrics_hourly
    where block_timestamp_hour::date >= current_date -30
    group by 1

    union all

    select 'Avalanche' as chain,
    sum(transaction_count) as txs,
    sum(unique_from_count) as users,
    sum(total_fees_usd) as fees,
    sum(TRANSACTION_COUNT_SUCCESS) as success,
    sum(TRANSACTION_COUNT_FAILED) as failed
    from avalanche.stats.ez_core_metrics_hourly
    where block_timestamp_hour::date >= current_date -30
    group by 1

    union all

    select 'SEI' as chain,
    sum(transaction_count) as txs,
    sum(unique_from_count) as users,
    sum(total_fees_usd) as fees,
    sum(TRANSACTION_COUNT_SUCCESS) as success,
    sum(TRANSACTION_COUNT_FAILED) as failed
    from sei.stats.ez_core_metrics_hourly
    where block_timestamp_hour::date >= current_date -30
    group by 1


    QueryRunArchived: QueryRun has been archived