messariCandyV3 Mints
    Updated 2025-02-11
    with
    base as ( -- get successful candyv3 transactions
    select
    t.block_timestamp,
    t.tx_id,
    t.signers[0] as wallet,
    t.instructions[0]:parsed:info:owner as owner,
    t.instructions,
    t.log_messages
    from
    solana.core.fact_events e
    inner join solana.core.fact_transactions t on e.tx_id = t.tx_id
    where
    date(t.block_timestamp) >= date('2022-10-01') -- CandyV3 went live in october
    and date(t.block_timestamp) < date('2023-01-01')
    and e.program_id = 'CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR'
    and t.succeeded = 'TRUE'
    ),
    raw as ( -- get mints
    select
    date(block_timestamp) as date,
    --tx_id,
    wallet
    --instructions[1]:parsed:info:mint as mint
    from
    base
    where
    owner = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'
    and log_messages::string like '%Program log: Instruction: Mint%'
    )
    select
    date,
    count(wallet) as mint_txns,
    count(distinct wallet) as unique_minters
    --count(distinct mint) as unique_mints
    from
    Last run: about 2 months ago
    DATE
    MINT_TXNS
    UNIQUE_MINTERS
    1
    2022-12-29 00:00:00.000501
    2
    2022-12-26 00:00:00.000391
    3
    2022-12-23 00:00:00.0003352
    4
    2022-12-21 00:00:00.0004441
    5
    2022-12-20 00:00:00.00011314
    6
    2022-12-19 00:00:00.0002071
    7
    2022-12-16 00:00:00.0005503
    8
    2022-12-15 00:00:00.000122
    9
    2022-12-13 00:00:00.000161
    10
    2022-12-12 00:00:00.00098232
    11
    2022-12-11 00:00:00.00021
    12
    2022-12-10 00:00:00.0004861
    13
    2022-12-06 00:00:00.0001021
    14
    2022-11-30 00:00:00.0002761
    15
    2022-11-28 00:00:00.00041
    16
    2022-11-27 00:00:00.00038181
    17
    2022-11-26 00:00:00.00029592
    18
    2022-11-25 00:00:00.00054681
    19
    2022-11-23 00:00:00.0002371
    20
    2022-11-22 00:00:00.000551
    38
    1KB
    198s