Afonso_Diaz2023-06-19 01:01 PM
    Updated 2023-06-19
    select
    'Avalanche' as chain,
    count(distinct tx_hash) as transactions,
    sum(amount) as volume_usd,
    avg(amount) as average_volume_usd
    from avalanche.core.ez_token_transfers
    where contract_address in (
    '0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e',
    '0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664'
    )
    and to_address = '0x0000000000000000000000000000000000000000'
    and block_timestamp::date >= current_date - 90
    group by 1

    union all

    select
    'Arbitrum' as chain,
    count(distinct tx_hash) as transactions,
    sum(amount) as volume_usd,
    avg(amount) as average_volume_usd
    from arbitrum.core.ez_token_transfers
    where contract_address in ('0xaf88d065e77c8cc2239327c5edb3a432268e5831', '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8') --USDC, USDC.e
    and to_address = '0x0000000000000000000000000000000000000000'
    and block_timestamp::date >= current_date - 90
    group by 1

    union all

    select
    'Polygon' as chain,
    count(distinct tx_hash) as transactions,
    sum(amount) as volume_usd,
    avg(amount) as average_volume_usd
    from polygon.core.ez_token_transfers
    where contract_address in ('0x2791bca1f2de4661ed88a30c99a7a9449aa84174')
    Run a query to Download Data