jackguyaxl_in 7
    Updated 2023-03-08
    SELECT
    date_trunc('week', block_timestamp) as week,
    'ethereum' as event_type,
    count(*) as events,
    count(DISTINCT origin_from_address) as users
    FROM ethereum.core.ez_eth_transfers
    WHERE ETH_TO_ADDRESS LIKE lower('0x2d5d7d31F671F86C782533cc367F14109a082712')
    GROUP BY 1,2

    UNION
    SELECT
    date_trunc('week', block_timestamp) as week,
    'polygon' as event_type,
    count(*) as events,
    count(DISTINCT origin_from_address) as users
    FROM polygon.core.ez_matic_transfers
    WHERE MATIC_TO_ADDRESS LIKE lower('0x2d5d7d31F671F86C782533cc367F14109a082712')
    GROUP BY 1,2

    UNION

    SELECT
    date_trunc('week', block_timestamp) as week,
    'bsc' as event_type,
    count(*) as events,
    count(DISTINCT origin_from_address) as users
    FROM bsc.core.ez_bnb_transfers
    WHERE BNB_TO_ADDRESS LIKE lower('0x2d5d7d31F671F86C782533cc367F14109a082712')
    GROUP BY 1,2

    UNION

    SELECT
    Run a query to Download Data