Afonso_DiazOvertime
    Updated 8 days ago
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    from_address as user,
    tx_fee,
    iff(origin_function_signature = '0xe884624b', 'GM to a Fren', 'GM') as tx_type
    from
    ink.core.fact_transactions
    where
    tx_succeeded
    and to_address = '0x9f500d075118272b3564ac6ef2c70a9067fd2d3f'
    and origin_function_signature in ('0xe884624b', '0xc0129d43')
    )

    select
    date_trunc('{{ period }}', block_timestamp) as date,
    count(distinct tx_hash) as transactions,
    count(distinct user) as users,
    sum(tx_fee) as fee_volume,
    avg(tx_fee) as average_fee_amount,
    sum(transactions) over (order by date) as cumulative_transactions,
    sum(fee_volume) over (order by date) as cumulative_fee_volume
    from
    main
    group by 1
    order by 1


    Last run: 8 days ago
    DATE
    TRANSACTIONS
    USERS
    FEE_VOLUME
    AVERAGE_FEE_AMOUNT
    CUMULATIVE_TRANSACTIONS
    CUMULATIVE_FEE_VOLUME
    1
    2025-01-21 00:00:00.0001251250.0007914105130.0000063312841041250.000791410513
    2
    2025-01-22 00:00:00.000105510550.0061002452670.00000578222300211800.00689165578
    3
    2025-01-23 00:00:00.00013758137580.11665382410.000008478981253149380.1235454799
    4
    2025-01-24 00:00:00.00014369143690.083697151890.000005824841805293070.2072426318
    5
    2025-01-25 00:00:00.00051420514200.094001635190.000001828114259807270.3012442669
    6
    2025-01-26 00:00:00.00052950529500.072657025230.000001372181781336770.3739012922
    7
    2025-01-27 00:00:00.00093170931700.14110959950.0000015145390092268470.5150108916
    8
    2025-01-28 00:00:00.00077244772440.15354473420.0000019877884913040910.6685556259
    9
    2025-01-29 00:00:00.00069372693720.088037110390.0000012690582713734630.7565927363
    10
    2025-01-30 00:00:00.00077724777240.073310293819.432130849e-74511870.8299030301
    11
    2025-01-31 00:00:00.00080419804190.10922456190.0000013581934865316060.939127592
    12
    2025-02-01 00:00:00.00059244592440.059899838010.0000010110701175908500.99902743
    13
    2025-02-02 00:00:00.00079488794880.10045033770.000001263717016703381.099477768
    14
    2025-02-03 00:00:00.00067912679120.055306513418.143849895e-77382501.154784281
    15
    2025-02-04 00:00:00.00041220412200.077967008720.0000018914849287794701.23275129
    16
    2025-02-05 00:00:00.00070405704050.069619872659.888484149e-78498751.302371162
    17
    2025-02-06 00:00:00.00048226482260.057525425370.000001192830128981011.359896588
    18
    2025-02-07 00:00:00.00071690716900.061118682038.525412474e-79697911.42101527
    19
    2025-02-08 00:00:00.00075463754630.056605763587.501128179e-710452541.477621033
    20
    2025-02-09 00:00:00.00075845758450.055413104337.306098534e-711210991.533034138
    76
    7KB
    2s