hrst79average-ivory copy
    Updated 2024-09-20
    -- forked from average-ivory @ https://flipsidecrypto.xyz/studio/queries/a25effaa-809e-4172-8798-57b56ec6bfc7

    with base as (
    select --date_trunc('hour',block_timestamp) as date,
    --symbol as token,
    --sum(amount) as amount,
    sum(amount_usd) as amount_usd
    from ethereum.core.ez_token_transfers
    where to_address in ('0x940362b46faf7df48af1c8989d809f50466b5fca','0xf7e8033366166f92eb477b7b38e0d47d47b43326','0x719981cf7d1a1dc681a1cf0c6b1eeee090d0fed6')
    --group by 1--,2

    UNION all

    select --date_trunc('hour',block_timestamp) as date,
    --symbol as token,
    --sum(amount) as amount,
    sum(amount_usd) as amount_usd
    from polygon.core.ez_token_transfers
    where to_address in ('0x940362b46faf7df48af1c8989d809f50466b5fca','0xf7e8033366166f92eb477b7b38e0d47d47b43326','0x719981cf7d1a1dc681a1cf0c6b1eeee090d0fed6')
    --group by 1--,2

    UNION all

    select --date_trunc('hour',block_timestamp) as date,
    --symbol as token,
    --sum(amount) as amount,
    sum(amount_usd) as amount_usd
    from arbitrum.core.ez_token_transfers
    where to_address in ('0x940362b46faf7df48af1c8989d809f50466b5fca','0xf7e8033366166f92eb477b7b38e0d47d47b43326','0x719981cf7d1a1dc681a1cf0c6b1eeee090d0fed6')
    --group by 1--,2

    UNION all

    select --date_trunc('hour',block_timestamp) as date,
    --symbol as token,
    --sum(amount) as amount,
    QueryRunArchived: QueryRun has been archived