Sleepyactions
    Updated 2023-06-04
    select
    block_timestamp::date day,
    'Swap' type,
    count(distinct tx_id) total_tx
    from flow.core.ez_swaps
    where block_timestamp::date between current_date - 180 and current_date - 1
    group by day, type

    union all

    select
    block_timestamp::date day,
    'NFT trading' type,
    count(distinct tx_id) total_tx
    from flow.core.ez_nft_sales
    where block_timestamp::date between current_date - 180 and current_date - 1
    group by day, type

    union all

    select
    block_timestamp::date day,
    'Staking' type,
    count(distinct tx_id) total_tx
    from flow.core.ez_staking_actions
    where block_timestamp::date between current_date - 180 and current_date - 1
    --and action not ilike '%withdraw%'
    group by day, type

    union all

    select
    block_timestamp::date day,
    'Bridging' type,
    count(distinct tx_id) total_tx
    Run a query to Download Data