datboitommy-XMrMRYcourse session 3
    Updated 2024-10-17
    -- Native Transfers

    -- with raw as (

    -- SELECT
    -- block_timestamp,
    -- tx_hash,
    -- from_address,
    -- to_address,
    -- amount
    -- FROM ethereum.core.ez_native_transfers
    -- WHERE from_address = lower('0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
    -- )
    -- and block_timestamp::date >= '2024-01-01'
    -- )

    -- SELECT
    -- date_trunc('month', block_timestamp) as monthly,
    -- sum(amount)
    -- FROM raw
    -- GROUP by all


    -- toker transfers
    -- with raw as (
    -- SELECT
    -- block_timestamp,
    -- tx_hash,
    -- from_address,
    -- to_address,
    -- contract_address, -- usdc, usdt,
    -- symbol,
    -- amount
    -- FROM ethereum.core.ez_token_transfers
    -- WHERE block_timestamp::date >= '2024-08-01'
    -- AND contract_address IN (
    QueryRunArchived: QueryRun has been archived