rajsUntitled Query
    Updated 2023-01-14
    SELECT
    'ethereum' as blockchain,
    date_trunc('day', block_timestamp) as date,
    count(*) as no_of_txs,
    sum(eth_value) as eth_value
    from ethereum.core.fact_transactions
    where status = 'SUCCESS'
    group by 1,2
    -- order by 1 desc

    union all

    SELECT
    'optimism' as blockchain,
    date_trunc('day', block_timestamp) as date,
    count(*) as no_of_txs,
    sum(eth_value) as eth_value
    from optimism.core.fact_transactions
    where status = 'SUCCESS'
    group by 1,2

    union all

    SELECT
    'abritrum' as blockchain,
    date_trunc('day', block_timestamp) as date,
    count(*) as no_of_txs,
    sum(eth_value) as eth_value
    from arbitrum.core.fact_transactions
    where status = 'SUCCESS'
    group by 1,2
    order by 2 desc
    Run a query to Download Data