Pine Analyticscurved-pink copy
    Updated 2025-03-04
    with tab1 as (
    select
    tx_hash,
    block_timestamp,
    wallet,
    sum(case when type like 'out' then -amount else amount end) as net_balance,
    sum(net_balance) over (partition by wallet order by block_timestamp) as balance
    from (
    select
    tx_hash,
    block_timestamp,
    from_address as wallet,
    'out' as type,
    amount
    from ethereum.core.ez_token_transfers
    where contract_address like lower('0xe343167631d89B6Ffc58B88d6b7fB0228795491D')
    union all
    select
    tx_hash,
    block_timestamp,
    to_address as wallet,
    'in' as type,
    amount
    from ethereum.core.ez_token_transfers
    where contract_address like lower('0xe343167631d89B6Ffc58B88d6b7fB0228795491D')
    )
    group by 1,2,3
    )

    select
    date(block_timestamp) as date,
    Last run: about 1 month ago
    DATE
    NET_HOLDERS
    TOTAL_HOLDERS
    1
    2025-03-04 00:00:00.000168
    2
    2025-03-03 00:00:00.00067
    3
    2025-03-02 00:00:00.000167
    4
    2025-03-01 00:00:00.000-166
    5
    2025-02-28 00:00:00.000167
    6
    2025-02-27 00:00:00.000166
    7
    2025-02-26 00:00:00.000365
    8
    2025-02-25 00:00:00.000062
    9
    2025-02-24 00:00:00.000262
    10
    2025-02-21 00:00:00.000260
    11
    2025-02-20 00:00:00.000158
    12
    2025-02-19 00:00:00.000057
    13
    2025-02-18 00:00:00.000157
    14
    2025-02-17 00:00:00.00056
    15
    2025-02-15 00:00:00.000156
    16
    2025-02-14 00:00:00.000355
    17
    2025-02-13 00:00:00.000152
    18
    2025-02-12 00:00:00.000351
    19
    2025-02-11 00:00:00.000048
    20
    2025-02-10 00:00:00.000148
    85
    3KB
    3s