jackguyNFT-token-dash-7 copy
    Updated 2024-01-30
    -- forked from NFT-token-dash-7 @ https://flipsidecrypto.xyz/edit/queries/47272795-20b4-4026-9d6c-26c083cae91e

    with tab1 as (
    SELECT
    case when TOKEN1_SYMBOL LIKE 'WETH' then TOKEN0_ADDRESS else TOKEN1_ADDRESS end as token
    FROM ethereum.uniswapv3.ez_swaps
    where pool_address IN (
    lower('0x5ee84bed805df225ee23aec4160cc0bfcf1bd892'),
    lower('0xe72377ae353edc1d07f6c0be34969a481d030d19'),
    lower('0x882784c5807d5e2e4950ae2327ca5d9b56a1015a'),
    lower('0x92741be6adcb2722681925afce9af0a7306ce90f'),
    lower('0x4a382e0fb2abc4bc087d2f7953a4689ecbb96374'),
    lower('0xb17015d33c97a2caca73be2a8669076a333fd43d'),
    lower('0x01a8227d4e7c3068ad1000c97a059af5c5fa3476')
    )
    AND ( token0_symbol LIKE 'FLC'
    OR token1_symbol LIKE 'FLC' )
    )

    SELECT
    hour,
    count(*) as new_holders

    FROM (
    SELECT
    to_address,
    min(date_trunc('hour', block_timestamp)) as hour
    from ethereum.core.ez_token_transfers
    WHERE contract_address in (SELECT * FROM tab1)
    GROUP BY 1
    )
    WHERE hour > current_date - {{ past_days }}
    GROUP BY 1
    Last run: about 1 year agoAuto-refreshes every 6 hours
    HOUR
    NEW_HOLDERS
    1
    2024-01-26 16:00:00.0001
    2
    2024-01-18 17:00:00.0001
    3
    2024-01-28 01:00:00.0001
    4
    2024-01-21 16:00:00.0005
    5
    2024-01-17 13:00:00.0001
    6
    2024-01-26 15:00:00.0004
    7
    2024-01-29 04:00:00.0003
    8
    2024-01-18 04:00:00.0001
    9
    2024-01-24 08:00:00.0001
    10
    2024-01-22 22:00:00.0005
    11
    2024-01-27 20:00:00.0002
    12
    2024-01-27 08:00:00.0002
    13
    2024-01-24 16:00:00.0001
    14
    2024-01-29 01:00:00.0003
    15
    2024-01-16 20:00:00.0001
    16
    2024-01-16 12:00:00.0001
    17
    2024-01-18 13:00:00.0002
    18
    2024-01-27 18:00:00.0001
    19
    2024-01-15 07:00:00.0001
    20
    2024-01-23 02:00:00.0002
    ...
    193
    6KB
    65s