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

    pre_data as
    (select datetime,
    chain,
    sum(amt) as 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
    DATE
    CHAIN
    FULLY_BAL
    1
    2025-03-20 00:00:00.000Optimism27467048.64
    2
    2025-03-20 00:00:00.000Polygon32998182.78
    3
    2025-03-20 00:00:00.000Aptos53163198.44
    4
    2025-03-20 00:00:00.000Avalanche53188864.37
    5
    2025-03-20 00:00:00.000Ethereum-80169650.97
    6
    2025-03-20 00:00:00.000Arbitrum11864328.98
    7
    2025-03-19 00:00:00.000Optimism27464196.79
    8
    2025-03-19 00:00:00.000Polygon32994485.52
    9
    2025-03-19 00:00:00.000Aptos53157241.85
    10
    2025-03-19 00:00:00.000Avalanche53182904.86
    11
    2025-03-19 00:00:00.000Ethereum-80208415.18
    12
    2025-03-19 00:00:00.000Arbitrum11863097.13
    13
    2025-03-21 00:00:00.000Optimism27069922.24
    14
    2025-03-21 00:00:00.000Polygon33001906.26
    15
    2025-03-21 00:00:00.000Aptos53169197.21
    16
    2025-03-21 00:00:00.000Avalanche53194866.1
    17
    2025-03-21 00:00:00.000Ethereum-117631071.06
    18
    2025-03-21 00:00:00.000Arbitrum32366050.14
    19
    2025-03-22 00:00:00.000Optimism27069922.24
    20
    2025-03-22 00:00:00.000Polygon33001906.26
    ...
    1800
    81KB
    27s