Sandeshtoken holders
    Updated 2024-08-14
    with dates as
    (
    select date_trunc('day',BLOCK_TIMESTAMP) as date from ethereum.core.fact_transactions
    where date>='2024-03-20'
    and date <= current_date
    group by 1
    ),

    buy_sell_table as
    ((
    select
    date_trunc('day',BLOCK_TIMESTAMP) as date,
    to_address as address ,
    amount
    from ethereum.core.ez_token_transfers
    where block_number>='16985982'
    and contract_address=lower('0x7613c48e0cd50e42dd9bf0f6c235063145f6f8dc')
    -- and nft_to_address='0x5221251f4494dc0a3a1e25359be0528a858afed9'

    )
    union all
    (
    select
    date_trunc('day',BLOCK_TIMESTAMP) as date,
    from_address as address,
    -amount
    from ethereum.core.ez_token_transfers
    where block_number>='16985982'
    and contract_address=lower('0x7613c48e0cd50e42dd9bf0f6c235063145f6f8dc')
    -- and nft_from_address='0x5221251f4494dc0a3a1e25359be0528a858afed9'

    )
    ),
    balance_delta_change as (
    select
    date,
    QueryRunArchived: QueryRun has been archived