tkvresearchnecessary-violet
    Updated 2025-03-23
    with list_contract as (
    select *
    from (values
    ('0x7712c34205737192402172409a8F7ccef8aA2AEc'),
    ('0xA6525Ae43eDCd03dC08E775774dCAbd3bb925872'),
    ('0xa1CDAb15bBA75a80dF4089CaFbA013e376957cF5'),
    ('0x2893Ef551B6dD69F661Ac00F11D93E5Dc5Dc0e99'),
    ('0x53FC82f14F009009b440a706e31c9021E1196A2F')
    ) as l(address)
    )
    --ethereum, optimism, arbitrum, polygon, avalanche

    select
    chain,
    symbol,
    sum(amt) as total_bal
    from
    (select date(block_timestamp) as datetime,
    'Ethereum' as chain,
    symbol,
    amount as amt
    from ethereum.core.ez_token_transfers
    where contract_address in (select lower(address) from list_contract)
    and
    from_address = '0x0000000000000000000000000000000000000000'
    union all
    select date(block_timestamp) as datetime,
    'Ethereum',
    symbol,
    -amount
    from ethereum.core.ez_token_transfers
    where contract_address in (select lower(address) from list_contract)
    and
    to_address = '0x0000000000000000000000000000000000000000'
    union all
    select date(block_timestamp) as datetime,
    Last run: about 1 month ago
    CHAIN
    SYMBOL
    TOTAL_BAL
    1
    EthereumBUIDL335880961.82
    2
    AvalancheBUIDL53194866.1
    3
    AptosBUIDL53169197.21
    4
    PolygonBUIDL33001906.26
    5
    ArbitrumBUIDL32366050.14
    6
    OptimismBUIDL27069922.24
    6
    196B
    27s