SpecterCyher bridge
    Updated 2024-08-23
    WITH Ethprice AS (
    SELECT price, token_address
    from ethereum.price.ez_prices_hourly
    where token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
    and hour = current_date()
    ),
    --Ethereum
    Cypher AS (
    SELECT tx_hash, FROM_ADDRESS,
    VALUE As amount_eth,
    VALUE * price AS amounts,
    TX_FEE,
    TX_FEE * price AS fee
    FROM ethereum.core.fact_transactions, Ethprice
    WHERE to_address = '0xfdf7c22ca4704dfef46e7e5ef53dca1d5a9f8e12'
    AND block_timestamp >= '2024-05-24'
    and STATUS = 'SUCCESS'

    UNION ALL
    --Arbitrum
    SELECT tx_hash, FROM_ADDRESS,
    VALUE As amount_eth,
    VALUE * price AS amounts,
    TX_FEE,
    TX_FEE * price AS fee
    FROM arbitrum.core.fact_transactions, Ethprice
    WHERE to_address = '0xfdf7c22ca4704dfef46e7e5ef53dca1d5a9f8e12'
    AND block_timestamp >= '2024-05-24'
    and STATUS = 'SUCCESS'

    UNION ALL
    -- Base
    SELECT tx_hash, FROM_ADDRESS,
    VALUE As amount_eth,
    VALUE * price AS amounts,
    TX_FEE,
    QueryRunArchived: QueryRun has been archived