Navidhubble total mint and burn
    Updated 2022-10-11
    -- mint and burn
    with transactions as (
    select
    tx_id,
    date_trunc('day', block_timestamp) as day,
    inner_instruction:instructions[0]:parsed:type as type_of_transaction,
    case when type_of_transaction='mintTo' then 1 else 0 end as tx_type_mint,
    case when type_of_transaction='burn' then 1 else 0 end as tx_type_burn,
    case when type_of_transaction!='burn' and type_of_transaction!='mintTo' then 1 else 0 end as tx_type_other
    from
    solana.core.fact_events
    where
    program_id = 'HubbLeXBb7qyLHt3x7gvYaRrxQmmgExb7fCJgDqFuB6T' and
    type_of_transaction is not null and
    succeeded
    )
    select
    sum(tx_type_mint) as number_of_mints,
    sum(tx_type_burn) as number_of_burns,
    sum(tx_type_other) as number_of_others
    from
    transactions

    Run a query to Download Data