Mrfti2024-03-23 02:32 PM
    Updated 2024-11-25
    with database AS
    (with general as (
    with tbl3 as (
    with tbl as (
    select
    to_address as "Address",
    sum(amount) as "Input"
    from
    base.core.ez_token_transfers
    where
    contract_address = lower ('0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed')
    group by
    1
    ),
    tbl2 as (
    select
    from_address as "Address",
    sum(amount) as "Output"
    from
    base.core.ez_token_transfers
    where
    contract_address = lower ('0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed')
    group by 1
    )
    select
    tbl."Address",
    case
    when "Input" is null then 0
    else "Input"
    end as "Input tokens",
    case
    when "Output" is null then 0
    else "Output"
    end as "Output tokens"
    from
    tbl
    Auto-refreshes every 12 hours
    QueryRunArchived: QueryRun has been archived