Hessishzink fees
    Updated 9 days ago
    with all_txs as (SELECT VALUE as cost,
    TO_ADDRESS as receiver ,
    case when
    TO_ADDRESS = '0xd00c70f9b78c63a36519c488f862df95b7a73d90' then 'Mint fee'
    else 'Referral' end as type,
    tx_hash,
    BLOCK_TIMESTAMP
    from ink.core.fact_traces
    where --tx_hash = '0x6b764622974863ec8809d96ec45f92d38c6c3353f3e7566581da0de41effd56c' and
    TYPE = 'CALL'
    and TRACE_ADDRESS != 'ORIGIN'
    and TX_SUCCEEDED = 'TRUE'
    and FROM_ADDRESS = lower('0xFb2Cd41a8aeC89EFBb19575C6c48d872cE97A0A5')),

    price as (
    SELECT HOUR::date as time, avg(close) as pr
    from crosschain.price.fact_prices_ohlc_hourly
    where PROVIDER = 'coingecko'
    and ASSET_ID = 'ethereum'
    group by all)

    select BLOCK_TIMESTAMP::date, sum(cost) as "Volume in eth",
    "Volume in eth"*avg(pr) as "Volume in USD",
    type
    from all_txs
    join price
    on time = BLOCK_TIMESTAMP::date
    group by all





    Last run: 9 days ago
    BLOCK_TIMESTAMP::DATE
    Volume in eth
    Volume in USD
    TYPE
    1
    2025-02-18 00:00:00.0000.42312161121133.621602682Mint fee
    2
    2025-02-18 00:00:00.0000.010069713426.978637684Referral
    3
    2025-03-21 00:00:00.0000.0032532920226.410348954Referral
    4
    2025-03-24 00:00:00.0000.08760650658180.780151143Mint fee
    5
    2025-03-29 00:00:00.0000.1381680868257.135357483Mint fee
    6
    2025-02-26 00:00:00.0000.2219209915539.688826975Mint fee
    7
    2024-12-24 00:00:00.0000.96709115283319.234942415Mint fee
    8
    2024-12-22 00:00:00.0000.33378016091112.435593164Mint fee
    9
    2025-04-02 00:00:00.0000.2856312936536.476861041Mint fee
    10
    2025-01-05 00:00:00.0000.0115281501341.865418677Referral
    11
    2025-03-25 00:00:00.0000.07405112316152.944325846Mint fee
    12
    2025-02-25 00:00:00.0000.1901626646466.399448425Mint fee
    13
    2025-03-12 00:00:00.0000.0036793183586.962208559Referral
    14
    2024-12-25 00:00:00.0000.0012667560324.408994512Referral
    15
    2025-02-14 00:00:00.0000.54037567781465.044697384Mint fee
    16
    2025-01-01 00:00:00.0000.2892024129966.478313505Mint fee
    17
    2024-12-25 00:00:00.0000.62876005362188.424255041Mint fee
    18
    2025-01-07 00:00:00.0000.05750670241206.050276642Referral
    19
    2025-02-14 00:00:00.0000.00861735089123.36301345Referral
    20
    2025-03-11 00:00:00.0000.00823005422215.643817373Referral
    ...
    237
    15KB
    43s