iam_lerikEos Holders
    Updated 2024-07-22
    -- forked from alitaslimi / BSC Holders Types @ https://flipsidecrypto.xyz/alitaslimi/q/yZcxOUzfXk78/bsc-holders-types

    with
    senders as (
    select
    from_address as address,
    label_type,
    sum(amount) as volume
    from
    bsc.core.ez_token_transfers transfers
    left join bsc.core.dim_labels labels on transfers.from_address = labels.address
    where
    block_timestamp::date < current_date
    and contract_address = '0x56b6fb708fc5732dec1afc8d8556423a2edccbd6'
    and from_address != '0x0000000000000000000000000000000000000000'
    group by
    from_address,
    label_type
    ),
    receivers as (
    select
    to_address as address,
    label_type,
    sum(amount) as volume
    from
    bsc.core.ez_token_transfers transfers
    left join bsc.core.dim_labels labels on transfers.to_address = labels.address
    where
    block_timestamp::date < current_date
    and contract_address = '0x56b6fb708fc5732dec1afc8d8556423a2edccbd6'
    and to_address != '0x0000000000000000000000000000000000000000'
    group by
    to_address,
    label_type
    )
    select
    QueryRunArchived: QueryRun has been archived