amirrzFTX outflow transaction volume
    Updated 2022-11-18
    with
    ftxt as ( select
    * from ethereum.core.dim_labels where address_name ilike '%ftx%' or label ilike '%ftx%'),
    ftxoutflowt as ( select
    block_timestamp,
    tx_hash,
    eth_to_address as receiver,
    'ETH' as symbol,
    amount_usd as volume
    from
    ethereum.core.ez_eth_transfers
    where
    eth_from_address in (select address from ftxt)
    and
    eth_to_address not in (select address from ftxt)
    and
    volume > 0
    union ALL
    select
    block_timestamp,
    tx_hash,
    to_address as receiver,
    symbol,
    amount_usd as volume
    from
    ethereum.core.ez_token_transfers
    where
    from_address in (select address from ftxt)
    and
    to_address not in (select address from ftxt)
    and
    volume > 0
    and
    contract_address !='0xc229c69eb3bb51828d0caa3509a05a51083898dd'),
    txtable as ( select
    tx_id from axelar.core.fact_msg_attributes t1 join ftxoutflowt t2 on t1.attribute_value = t2.receiver and t1.block_timestamp > t2.block_timestamp)
    Run a query to Download Data