hessTotal USDC
    Updated 2022-12-08
    with

    optimism_user as ( select count(DISTINCT(tx_hash)) as total_txx, sum(RAW_AMOUNT/pow(10,6)) as volumes
    from optimism.core.fact_token_transfers
    where contract_address = lower('0x7f5c764cbc14f9669b88837ca1490cca17c31607')
    and block_timestamp::date >= '2022-07-01'
    and raw_amount::float > 0
    and origin_from_address != '0x0000000000000000000000000000000000000000'
    and origin_to_address != '0x0000000000000000000000000000000000000000'
    and from_address != '0x0000000000000000000000000000000000000000'
    and to_address != '0x0000000000000000000000000000000000000000'
    )
    ,
    avalanche_user as ( select count(DISTINCT(tx_hash)) as total_txx, sum(RAW_AMOUNT/pow(10,6)) as volumes
    from avalanche.core.fact_token_transfers
    where contract_address = lower('0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e')
    and block_timestamp::date >= '2022-07-01'
    and origin_from_address != '0x0000000000000000000000000000000000000000'
    and origin_to_address != '0x0000000000000000000000000000000000000000'
    and from_address != '0x0000000000000000000000000000000000000000'
    and to_address != '0x0000000000000000000000000000000000000000'
    )
    ,
    arbitrum_user as ( select count(DISTINCT(tx_hash)) as total_txx, sum(RAW_AMOUNT/pow(10,6)) as volumes
    from arbitrum.core.fact_token_transfers
    where contract_address = lower('0xff970a61a04b1ca14834a43f5de4533ebddb5cc8')
    and block_timestamp::date >= '2022-07-01'
    and origin_from_address != '0x0000000000000000000000000000000000000000'
    and origin_to_address != '0x0000000000000000000000000000000000000000'
    and from_address != '0x0000000000000000000000000000000000000000'
    and to_address != '0x0000000000000000000000000000000000000000'
    )
    ,
    Polygon_user as ( select count(DISTINCT(tx_hash)) as total_txx, sum(RAW_AMOUNT/pow(10,6)) as volumes
    from polygon.core.fact_token_transfers
    where contract_address = lower('0x2791bca1f2de4661ed88a30c99a7a9449aa84174')
    Run a query to Download Data