Monad Metrics GuildCreators Range
    Updated 2025-02-26
    WITH raw AS (
    SELECT
    block_timestamp,
    tx_hash,
    topic_1,
    topic_3,
    regexp_substr_all(SUBSTR(data, 3), '.{64}') AS segmented
    FROM monad.testnet.fact_event_logs
    WHERE contract_address = '0x60216fb3285595f4643f9f7cddab842e799bd642'
    AND topic_0 = '0x962c5f466b5c14a23d5aa7d7f1cd96153b1fd74124062d77ef00352a9812daf5'
    ),

    almost as (
    SELECT
    block_timestamp,
    tx_hash,
    segmented,
    '0x' || SUBSTR(topic_1, 27) AS creator,
    DATEDIFF('day', block_timestamp, CURRENT_DATE()) AS created_interval,
    '0x' || SUBSTR(topic_3, 27) AS Token_address,
    CASE
    WHEN livequery.utils.udf_hex_to_int(segmented[9]) <= POWER(10, 38) THEN livequery.utils.udf_hex_to_int(segmented[9]) * 2
    ELSE NULL
    END AS array_two,
    CASE
    WHEN livequery.utils.udf_hex_to_int(segmented[11]) <= POWER(10, 38) THEN livequery.utils.udf_hex_to_int(segmented[11]) * 2
    ELSE NULL
    END AS array_three
    FROM raw;
    ),

    names as (
    select
    block_timestamp,
    tx_hash,
    created_interval,
    Last run: 1 day ago
    CREATORS_RANGE
    TOTAL_CREATOR
    1
    10-50 token Created1139
    2
    >50 token Created62
    3
    1-5token Created48090
    4
    5-10 token Created3058
    5
    1 token Created224088
    5
    137B
    15s