datavortexnft mints
    Updated 2025-02-27
    /*
    SELECT
    DISTINCT
    tx_hash,
    '0x' || SUBSTR(topics[0], 27) AS event_signature,
    '0x' || SUBSTR(topics[1], 27) AS from_address,
    '0x' || SUBSTR(topics[2], 27) AS to_address,
    ethereum.public.udf_hex_to_int(topics[3]) AS nft_id,
    kaia.utils.udf_hex_to_int(data :: STRING) as amount
    FROM kaia.core.fact_event_logs
    WHERE
    contract_address = LOWER('0x2f0bcecce06b6eb32a83073984d0b793640aeaf6')
    AND '0x' || SUBSTR(topics[1], 27) = '0x0000000000000000000000000000000000000000'

    */

    WITH mint_events AS (
    SELECT
    tx_hash,
    origin_from_address,
    '0x' || SUBSTR(topics[0], 27) AS event_signature,
    '0x' || SUBSTR(topics[1], 27) AS from_address,
    '0x' || SUBSTR(topics[2], 27) AS to_address,
    ethereum.public.udf_hex_to_int(topics[3]) AS nft_id,
    -- kaia.utils.udf_hex_to_int(data :: STRING) AS amount
    FROM kaia.core.fact_event_logs
    WHERE
    contract_address = LOWER('0x2f0bcecce06b6eb32a83073984d0b793640aeaf6')
    AND '0x' || SUBSTR(topics[1], 27) = '0x0000000000000000000000000000000000000000'
    )
    SELECT
    COUNT(tx_hash) AS total_mints,
    COUNT(DISTINCT origin_from_address) AS unique_minters,
    COUNT(DISTINCT nft_id) AS total_unique_nfts
    FROM mint_events;

    Last run: 3 months ago
    TOTAL_MINTS
    UNIQUE_MINTERS
    TOTAL_UNIQUE_NFTS
    1
    230794323078
    1
    18B
    4s