djebrilMost active trading days
    Updated 2024-09-10
    WITH

    tokens AS (
    SELECT
    block_timestamp AS block_time,
    tx_hash,
    'ethereum' AS network,
    token_out AS token_address,
    symbol_out AS symbol
    FROM ethereum.defi.ez_dex_swaps
    WHERE platform ilike 'uniswap%'
    UNION ALL
    SELECT
    block_timestamp AS block_time,
    tx_hash,
    'ethereum' AS network,
    token_in AS token_address,
    symbol_in AS symbol
    FROM ethereum.defi.ez_dex_swaps
    WHERE platform ilike 'uniswap%'

    UNION ALL

    SELECT
    block_timestamp AS block_time,
    tx_hash,
    'bsc' AS network,
    token_out AS token_address,
    symbol_out AS symbol
    FROM bsc.defi.ez_dex_swaps
    WHERE platform ilike 'uniswap%'
    UNION ALL
    SELECT
    block_timestamp AS block_time,
    tx_hash,
    'bsc' AS network,
    QueryRunArchived: QueryRun has been archived