freemartianFuel - Hourly Deposits
    Updated 2024-10-18
    with deposits AS (
    SELECT
    block_timestamp, tx_hash, from_address, amount_usd, 'ETH' AS symbol
    FROM ethereum.core.ez_native_transfers
    WHERE to_address = '0x19b5cc75846bf6286d599ec116536a333c4c2c14'
    AND block_timestamp::date >= '2024-07-08'
    UNION
    SELECT
    block_timestamp, tx_hash, from_address, amount_usd, symbol
    FROM ethereum.core.ez_token_transfers
    WHERE to_address = '0x19b5cc75846bf6286d599ec116536a333c4c2c14'
    AND block_timestamp::date >= '2024-07-08'
    )

    SELECT
    date_trunc('hour',block_timestamp) AS hour,
    symbol,
    count(*) AS transactions,
    count(DISTINCT from_address) AS users,
    SUM(amount_usd) AS usd_amount
    FROM deposits
    GROUP BY 1,2

    Auto-refreshes every 1 hour
    QueryRunArchived: QueryRun has been archived