freemartianDaily Transactions
    Updated 2025-01-14
    with prices AS(
    SELECT hour::date AS price_day, AVG(price) AS price
    FROM ethereum.price.ez_prices_hourly
    WHERE symbol = 'WETH'
    AND hour::date >= '2024-12-06'
    GROUP BY 1
    ),

    total_transactions as(
    SELECT
    *, tx_fee * price AS tx_fee_usd
    FROM ink.core.fact_transactions
    left join prices on (block_timestamp::date = price_day)
    WHERE block_timestamp::date >= '2024-12-09 '
    )



    SELECT
    block_timestamp::date AS day,
    count(DISTINCT tx_hash) as transactions,
    count(DISTINCT from_address) AS user,
    SUM(tx_fee) AS fees,
    AVG(tx_fee) AS average_fee,
    SUM(tx_fee_usd) AS fee_usd,
    avg(tx_fee_usd) AS average_fee_usd
    FROM total_transactions
    -- left join prices on (price_day = day)
    WHERE block_timestamp::date >= '2024-12-09 '
    group by 1


    Last run: 2 months ago
    DAY
    TRANSACTIONS
    USER
    FEES
    AVERAGE_FEE
    FEE_USD
    AVERAGE_FEE_USD
    1
    2025-01-08 00:00:00.00012614883790.47526148210.0000037674912181589.788866810.01260256894
    2
    2024-12-26 00:00:00.00011723458460.3216533580.0000027436866271090.7424857660.009303977394
    3
    2025-01-14 00:00:00.0009568472830.85893244140.0000089767614382725.3164063780.02848246735
    4
    2024-12-23 00:00:00.00010303330570.22686942780.000002201910337752.0314110810.007298937341
    5
    2024-12-15 00:00:00.0008650880.00030770450733.556948575e-91.1944401770.00001380727998
    6
    2024-12-24 00:00:00.00011450449000.32222739240.0000028141147241105.1252966040.009651412148
    7
    2024-12-29 00:00:00.00011847558430.41683069820.0000035183008921408.3187859160.01188705453
    8
    2024-12-12 00:00:00.00086686180.0020518758542.367021035e-88.0119382750.00009242482379
    9
    2024-12-17 00:00:00.00010267214480.29052836940.0000028296747841159.391226950.01129218508
    10
    2025-01-07 00:00:00.000145577118430.7385103130.0000050729875812654.7876418520.01823631234
    11
    2025-01-10 00:00:00.00011575854910.2807118710.000002424988951917.0694246370.007922298456
    12
    2024-12-28 00:00:00.00011442948860.31902999560.0000027880169851069.954026010.009350374695
    13
    2024-12-16 00:00:00.00087083270.006847445897.863125857e-827.19987250.0003123442291
    14
    2025-01-11 00:00:00.00012052963020.26968755480.000002237532501879.3090806580.007295415051
    15
    2024-12-25 00:00:00.00011523945850.21866659640.000001897505154761.037928730.006603996292
    16
    2024-12-19 00:00:00.00011478165210.46753162810.0000040732493021689.4911873690.0147192583
    17
    2024-12-14 00:00:00.00086537140.0012229879191.413254352e-84.7620698480.00005502929207
    18
    2025-01-09 00:00:00.00011658255370.32223772250.0000027640435271060.7476398090.009098725702
    19
    2024-12-20 00:00:00.00010304627620.24038445690.000002332787851809.2696988670.007853479988
    20
    2024-12-30 00:00:00.00011489756740.46316393470.0000040311229591566.383566910.01363293704
    37
    4KB
    2s