john-adamUntitled Query
    Updated 2022-10-23
    with standardbridge as (
    select block_timestamp,
    tx_hash,
    origin_from_address,
    'ETH' as symbol,
    amount_usd
    from ethereum.core.ez_eth_transfers
    where eth_to_address = '0x99c9fc46f92e8a1c0dec1b1747d010903e884be1'
    union ALL
    select block_timestamp,
    tx_hash,
    origin_from_address,
    symbol,
    amount_usd
    from ethereum.core.ez_token_transfers
    where to_address = '0x99c9fc46f92e8a1c0dec1b1747d010903e884be1'),

    hopbridge1 as (
    select tx_hash
    from ethereum.core.fact_event_logs
    where event_inputs:chainId = '10'
    and contract_address in ('0xb8901acb165ed027e32754e0ffe830802919727f','0x3666f603cc164936c1b87e207f36beba4ac5f18a','0x3e4a3a4796d16c0cd582c382691998f7c06420b6','0x3d4cc8a61c7528fd86c55cfe061a78dcba48edd1','0x22b1cbb8d98a01a3b71d034bb899775a76eb1cc2')
    and tx_status = 'SUCCESS'),

    hopbridge2 as (
    select block_timestamp,
    tx_hash,
    origin_from_address,
    'ETH' as symbol,
    amount_usd
    from ethereum.core.ez_eth_transfers
    where tx_hash in (select distinct tx_hash from hopbridge1)
    union ALL
    select block_timestamp,
    tx_hash,
    origin_from_address,
    Run a query to Download Data