freemartiancumulative stake
    Updated 2 hours ago

    WITH datas as (
    select
    block_timestamp, tx_hash, origin_from_address as user_address, amount, 'stake' as label
    from base.core.ez_token_transfers
    where origin_function_signature = '0x6e553f65'
    and contract_address = '0x98d0baa52b2d063e780de12f615f963fe8537553'
    and origin_to_address = '0x548d3b444da39686d1a6f1544781d154e7cd1ef7'
    -- and from_address = '0x0000000000000000000000000000000000000000'
    -- and tx_hash = '0xbbb7bd642c374163d57fb3edc9d776d3144c47db1456b7ca441abccc5061ccb4'

    union all

    select
    block_timestamp,tx_hash, origin_from_address as user_address, -amount as amount, 'unstake' as label
    from base.core.ez_token_transfers
    where origin_function_signature = '0x9343d9e1'
    and from_address = '0x548d3b444da39686d1a6f1544781d154e7cd1ef7'
    and contract_address = '0x98d0baa52b2d063e780de12f615f963fe8537553'

    order by 1 asc
    )

    select
    date_trunc('hour',block_timestamp) as hour,
    -- label,
    count(tx_hash) as transactions,
    count(distinct user_address) as users,
    sum(amount) as amounts,
    SUM(amounts) over(order by hour asc) as cum_amount
    from datas
    group by 1




    Last run: about 2 hours agoAuto-refreshes every 1 hour
    HOUR
    TRANSACTIONS
    USERS
    AMOUNTS
    CUM_AMOUNT
    1
    2025-02-22 03:00:00.0004544-677.7771210054856521.17970951
    2
    2025-02-22 04:00:00.00042416987.9400549654863509.11976448
    3
    2025-03-14 17:00:00.00033-436.1214032779993949.29625732
    4
    2025-03-14 18:00:00.0001414-1618.7832765959992330.51298073
    5
    2025-03-03 13:00:00.00023221952.5580591129957938.42683263
    6
    2025-02-22 20:00:00.000494746609.1247420975272819.7854063
    7
    2025-02-23 18:00:00.00036365757.3866189676631390.36309346
    8
    2025-03-10 13:00:00.0001515-4749.8986264879852380.81275943
    9
    2025-03-17 22:00:00.0001919139.7810937104.2844641
    10
    2025-03-17 09:00:00.00066908.30435819710940075.0900046
    11
    2025-03-17 13:00:00.00017174648.44895497210943689.1211316
    12
    2025-03-18 07:00:00.00055349.93310649511045584.6900294
    13
    2025-03-19 14:00:00.00029284023.57732116611606609.774207
    14
    2025-03-19 18:00:00.00055454.46149287111607221.9492732
    15
    2025-04-08 13:00:00.000131253.89864225414161891.4015339
    16
    2025-04-11 11:00:00.000881257.95301492314014161.5829214
    17
    2025-04-14 05:00:00.00033127.16350164514017428.5639991
    18
    2025-03-03 06:00:00.0005048756.1342815559934119.3824071
    19
    2025-03-02 18:00:00.0001313-2120.2447857379875302.46176899
    20
    2025-03-20 23:00:00.0001111-26.83445513711704757.7555759
    ...
    1245
    78KB
    27s