Sbhn_NP2023-12-15 09:28 PM
    Updated 2024-03-16
    with base as (select
    tx_id,
    signers[0] as user,
    decoded_instruction as raw,
    block_timestamp
    from solana.core.ez_events_decoded
    where program_id = 'dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH'
    )

    select date_trunc('day',block_timestamp) as date,
    raw:name as type,
    count(DISTINCT tx_id) as txs,
    count(DISTINCT user) as users
    from base
    group by 1,2
    QueryRunArchived: QueryRun has been archived