Afonso_DiazOvertime
    Updated 2025-03-01
    with

    overtime as (
    select
    date_trunc('{{ period }}', block_timestamp) as date,
    count(distinct tx_hash) as transactions,
    count(distinct from_address) as users,
    transactions / datediff('seconds', min(block_timestamp), max(block_timestamp)) as tps,
    sum(tx_fee) as volume_fee,
    avg(tx_fee) as average_fee_amount
    from
    ink.core.fact_transactions
    where
    tx_succeeded
    group by 1
    ),

    new_users as (
    select
    date_trunc('{{ period }}', min_date) as date,
    count(distinct user) as new_user
    from (
    select
    min(block_timestamp) as min_date,
    from_address as user
    from
    ink.core.fact_transactions
    where
    tx_succeeded
    group by 2
    )
    group by 1
    ),

    blocks as (
    select
    Last run: about 2 months ago
    DATE
    TRANSACTIONS
    USERS
    TPS
    VOLUME_FEE
    AVERAGE_FEE_AMOUNT
    BLOCKS
    NEW_USERS
    RETURNING_USERS
    CUMULATIVE_TRANSACTIONS
    CUMULATIVE_VOLUME_FEE
    1
    2024-12-06 00:00:00.0003118811.000032003118910311880
    2
    2024-12-07 00:00:00.0008640221.0000350086400111175900
    3
    2024-12-08 00:00:00.0008640221.0000350086400022039920
    4
    2024-12-09 00:00:00.0008647581.000880.081028052879.370113082e-786400622904670.08102805287
    5
    2024-12-10 00:00:00.0008643071.0003590.00075788844478.768812273e-986400523768970.08178594132
    6
    2024-12-11 00:00:00.00086593131.0022450.065979851437.619536386e-7864001034634900.1477657927
    7
    2024-12-12 00:00:00.00086686181.0033220.0020518758542.367021035e-8864001085501760.1498176686
    8
    2024-12-13 00:00:00.00086634231.002720.0024449792592.822193664e-88640010136368100.1522626479
    9
    2024-12-14 00:00:00.00086537141.0015970.0012229879191.413254352e-8864004107233470.1534856358
    10
    2024-12-15 00:00:00.0008650881.0012620.00030770450733.556948575e-986400088098550.1537933403
    11
    2024-12-16 00:00:00.00087082271.0079050.0067988128177.807368707e-88640012158969370.1605921531
    12
    2024-12-17 00:00:00.00010202314461.1808350.28140116210.000002758212973864001426209989600.4419933152
    13
    2024-12-18 00:00:00.00011944041831.3824230.3053329970.00000255637137586400334583811184000.7473263122
    14
    2024-12-19 00:00:00.00011427463011.3226310.45938782970.000004020055566864005084121712326741.206714142
    15
    2024-12-20 00:00:00.00010275027581.189250.23700213830.000002306590154864001438132013354241.44371628
    16
    2024-12-21 00:00:00.0009871821231.1425830.072118985257.30555575e-786400116995414341421.515835265
    17
    2024-12-22 00:00:00.0009869421421.1423050.048832052354.947823814e-786400130683615328361.564667318
    18
    2024-12-23 00:00:00.00010278930501.1897010.22494649610.000002188429658864001986106416356251.789613814
    19
    2024-12-24 00:00:00.00011424248981.3222610.31764191440.000002780430266864003464143417498672.107255728
    20
    2024-12-25 00:00:00.00011514245851.3326770.21604030310.000001876294515864003082150318650092.323296031
    86
    10KB
    4s