hessCreated tokens
    Updated 2025-04-07
    with base as (select a.block_timestamp,
    a.tx_hash,
    origin_from_address,
    '0x' || substr(topics[1],27) as token_address,
    '0x' || substr(topics[2],27) as creator_address,
    '' as mcapInEth,
    regexp_substr_all(substr(input_data,11, len(input_data)), '.{64}') as segmented,
    TRIM(TRY_HEX_DECODE_STRING(segmented[8]::STRING), '\x00') AS name,
    TRIM(TRY_HEX_DECODE_STRING(segmented[10]::STRING), '\x00') AS symbol,
    TRIM(TRY_HEX_DECODE_STRING(segmented[12]::STRING), '\x00') AS description,
    REGEXP_REPLACE(SUBSTRING(segmented[2], 3), '^0+', '') AS cleaned_data,
    livequery.utils.udf_hex_to_int(cleaned_data)/pow(10,18) as amount
    from ronin.core.fact_event_logs a join ronin.core.fact_transactions b on a.tx_hash = b.tx_hash
    where topics[0] = '0xf372df0af3c16a1deb41b25691dd807a3836ba8f443e83d24c1406ae3748232e'
    and a. TX_SUCCEEDED = 'TRUE'
    and origin_to_address = '0xa54b0184d12349cf65281c6f965a74828ddd9e8f'
    )

    select
    count(DISTINCT creator_address) as "Creators",
    count(DISTINCT token_address) as "Tokens",
    sum(amount) as "Self-Input (RON)",
    avg(amount) as "Avg Self-input (RON)"
    from base

    Last run: 10 days ago
    Creators
    Tokens
    Self-Input (RON)
    Avg Self-input (RON)
    1
    9106233581719780.3087761198.803878477
    1
    44B
    32s