yasmin-n-d-r-hTotal Number of Contracts on Near Protocol near3
    Updated 2022-09-28
    select
    date_trunc('day', block_timestamp) as dates,
    count (distinct tx_hash) as contract,
    sum(contract) over (order by dates) as cum_new_contracts,
    case when dates < '2022-06-01' then 'old' ELSE 'new' END as split
    from
    near.core.fact_actions_events
    where
    Action_Name = 'CreateAccount'
    and date_trunc('day', block_timestamp) >= '2022-01-01'
    group by
    1

    Run a query to Download Data