Afonso_DiazClassifying bridge transactions (ETH)
    Updated 2025-05-19
    with

    pricet as (
    select
    hour::date as date,
    avg(price) as token_price_usd
    from
    crosschain.price.ez_prices_hourly
    where
    blockchain = 'ethereum'
    and token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
    group by 1
    ),

    main as (
    select
    tx_hash,
    block_timestamp,
    to_address as user,
    value as amount,
    amount * token_price_usd as amount_usd,
    'Bridge to Swell' as type
    from
    swell.core.fact_transactions
    join
    pricet on block_timestamp::date = date
    where
    from_address = '0xf70da97812cb96acdf810712aa562db8dfa3dbef'
    and tx_succeeded
    and from_address != to_address
    and tx_hash not in (select distinct tx_hash from swell.core.fact_event_logs)

    union all

    select
    tx_hash,
    Last run: 28 days ago
    TYPE
    TX_TYPE
    TRANSACTIONS
    1
    Bridge from Swell0.0056 - 0.0278 ETH1266
    2
    Bridge from Swell0.0278 - 0.0556 ETH74
    3
    Bridge from Swell0.0556 - 0.2778 ETH147
    4
    Bridge from Swell0.2778 - 0.5556 ETH29
    5
    Bridge from Swell0.5556 - 2.7778 ETH23
    6
    Bridge from Swell2.7778 - 5.556 ETH5
    7
    Bridge from SwellBelow 0.0056 ETH1678
    8
    Bridge to Swell0.0056 - 0.0278 ETH516
    9
    Bridge to Swell0.0278 - 0.0556 ETH113
    10
    Bridge to Swell0.0556 - 0.2778 ETH314
    11
    Bridge to Swell0.2778 - 0.5556 ETH30
    12
    Bridge to Swell0.5556 - 2.7778 ETH79
    13
    Bridge to Swell2.7778 - 5.556 ETH3
    14
    Bridge to SwellBelow 0.0056 ETH6444
    14
    645B
    10s