hessTotal Trading
    Updated 2025-02-20
    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'
    )
    ,
    base_ii as (select a.tx_hash,
    b.name,
    b.symbol,
    b.description,
    contract_address,
    token_address,
    creator_address
    from ronin.core.ez_token_transfers a left outer join base b on a.contract_address = b.token_address
    where origin_to_address = '0xa54b0184d12349cf65281c6f965a74828ddd9e8f')
    ,
    token_name as ( select DISTINCT tx_hash,
    name,
    symbol,
    description,
    token_address,
    creator_address
    from base_ii)
    ,
    Last run: 26 days ago
    Wallet Address
    Trades
    Tokens
    Amount (USD)
    Avg Volume Per Address
    Amount (RON)
    Avg Amount (USD)
    Max Amount (USD)
    Median Amount (USD)
    1
    203298779241775042666440.77344542098.79683080628786746.483245648.59924181816853.87086459415.703515858
    1
    113B
    70s