namanasynceth_txs
    Updated 2024-06-26
    select
    block_timestamp,
    IFF(from_address = lower('0x944fdeA9d4956ce673C7545862cefCcad6Ee1B04'), 'crypto withdrawal', 'crypto deposit') type,
    from_address sender_address,
    value sent_quantity,
    'ETH' as sent_currency,
    '' asset_address,
    to_address received_address,
    value as received_quantity,
    'ETH' as received_currency,
    tx_fee as fee_amount,
    'ETH' as fee_currency

    from ethereum.core.fact_transactions


    where status = 'SUCCESS'
    and (from_address = lower('0x944fdeA9d4956ce673C7545862cefCcad6Ee1B04') or to_address = lower('0x944fdeA9d4956ce673C7545862cefCcad6Ee1B04'))
    and from_address != to_address
    and value > 0
    and block_timestamp >= DATEADD(day, -60, CURRENT_TIMESTAMP)
    QueryRunArchived: QueryRun has been archived