hess4. Total Volume Per Source Chain
    Updated 2025-03-25
    with layer_base as (select block_timestamp::Date as date,
    tx_hash,
    contract_address as token_address,
    '0x' || substr(TOPIC_1,27) as null_address,
    '0x' || substr(TOPIC_2,27) as user_address,
    case when contract_address = '0xf1815bd50389c46847f0bda824ec8da914045d14' then 'USDC'
    when token_address = '0x2f6f07cdcf3588944bf4c42ac74ff24bf56e7590' then 'WETH'
    when token_address = '0x2aabea2058b5ac2d339b163c6ab6f2b6d53aabed' then 'USDF'
    when token_address = '0x674843c06ff83502ddb4d37c2e09c01cda38cbc8' then 'USDT'
    when token_address = '0xfa0e06b54986ad96de87a8c56fea76fbd8d493f8' then 'USDF'
    when token_address = '0xea3910f1c6e687b59835885904a2fd1944b51ec6' then 'TRUMP' end as token_name,
    event_index,
    TOPICS,
    livequery.utils.udf_hex_to_int(DATA) as amount_raw,
    case when contract_address = '0xf1815bd50389c46847f0bda824ec8da914045d14' then amount_raw/pow(10,6)
    when token_address = '0x2f6f07cdcf3588944bf4c42ac74ff24bf56e7590' then amount_raw/pow(10,18)
    when token_address = '0x2aabea2058b5ac2d339b163c6ab6f2b6d53aabed' then amount_raw/pow(10,6)
    when token_address = '0x674843c06ff83502ddb4d37c2e09c01cda38cbc8' then amount_raw/pow(10,6)
    when token_address = '0xfa0e06b54986ad96de87a8c56fea76fbd8d493f8' then amount_raw/pow(10,6)
    when token_address = '0xea3910f1c6e687b59835885904a2fd1944b51ec6' then amount_raw/pow(10,18) end as amount
    from flow.core_evm.fact_event_logs
    where origin_to_address = '0xa20db4ffe74a31d17fc24bd32a7dd7555441058e'
    and tx_succeeded = 'TRUE'
    having null_address = '0x0000000000000000000000000000000000000000'
    )
    ,
    price as ( select hour::Date as date,
    case when symbol = 'WETH' then '0x2f6f07cdcf3588944bf4c42ac74ff24bf56e7590' else '0xea3910f1c6e687b59835885904a2fd1944b51ec6' end as tok_address,
    avg(price) as avg_price
    from crosschain.price.ez_prices_hourly
    where token_address in ('0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2','6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN')
    group by 1,2)
    ,
    final as ( select a.date,
    a.tx_hash,
    user_address,
    Last run: 30 days ago
    SOURCE_CHAIN
    Addresses
    Transaction
    Volume (USD)
    Avg Volume Per Address (USD)
    Source Chain
    AVG
    MEDIAN
    MAX
    1
    Ethereum21240015240100.475032471887.266391662137629.87771612967.497385417999663.701871
    2
    Base24419463806452.777133471559.38253876811438.025227478253.910259474999998
    3
    Arbitrum932162894765.2932556731126.508529631113339.93222698581.23465999997
    4
    Other Chains1372122307210.9706324716840.955990018110731.2138168951.931113499657
    5
    BSC1220410667.9290734222.3274225120533.3964535547.743662120055.007356
    6
    Sei872870220952.0844815253.3854179831253.385417983253.980035258.91783
    7
    Flare819108192.72950003113524.09118750415694.3541842120.000158743.22049
    8
    Scroll4434602.0939353338650.52348383318650.5234838332.59735220834596.494641667
    9
    Soneium4523320.6211665265830.15529163214664.12423330511.28572523257.635166
    10
    Linea9101851.202793212205.6891992461185.1202793215.6748195831365.29260875
    11
    Abstract3132968.2675432531.234436879130.25836072713.54287139.087357725
    12
    Mantle118.5175618338.51756183318.5175618338.5175618338.517561833
    13
    Aurora224.7744822.38724112.3872412.3872412.774482
    14
    Superposition110.9993990.99939910.9993990.9993990.999399
    15
    Hemi110.2644013750.26440137510.2644013750.2644013750.264401375
    16
    Ape110.00809843750.008098437510.00809843750.00809843750.0080984375
    17
    Gravity1100.0010.00110.00010.00010.0001
    17
    1KB
    26s