jackguyNFT-token-dash-5
    Updated 2024-01-30
    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 '{{ token }}'
    OR token1_symbol LIKE '{{ token }}' )
    ), tab2 as (
    SELECT
    block_timestamp,
    tx_hash,
    user,
    sum(CASE when flow like 'out' then -1 * amount else amount end) as net_flow
    FROM (
    SELECT
    block_timestamp,
    tx_hash,
    from_address as user,
    'out' as flow,
    RAW_AMOUNT_PRECISE::NUMBER(38, 0) as AMOUNT
    from ethereum.core.fact_token_transfers
    WHERE contract_address in (SELECT * FROM tab1)
    UNION
    SELECT
    block_timestamp,
    Last run: about 1 year agoAuto-refreshes every 3 hours
    HOUR
    AMT_OUT
    AMT_IN
    NET_NEW_HOLDERS
    TOTAL_HOLDERS
    1
    2024-01-30 01:00:00.0000002837
    2
    2024-01-30 00:00:00.0001212837
    3
    2024-01-29 23:00:00.00020-22836
    4
    2024-01-29 22:00:00.0000222838
    5
    2024-01-29 21:00:00.0002202836
    6
    2024-01-29 20:00:00.0000332836
    7
    2024-01-29 19:00:00.0002202833
    8
    2024-01-29 18:00:00.0000112833
    9
    2024-01-29 17:00:00.0001212832
    10
    2024-01-29 16:00:00.0000002831
    11
    2024-01-29 15:00:00.0001212831
    12
    2024-01-29 14:00:00.0001322830
    13
    2024-01-29 13:00:00.00032-12828
    14
    2024-01-29 12:00:00.0000222829
    15
    2024-01-29 11:00:00.0000002827
    16
    2024-01-29 10:00:00.0000332827
    17
    2024-01-29 09:00:00.0000222824
    18
    2024-01-29 08:00:00.00010-12822
    19
    2024-01-29 07:00:00.0000222823
    20
    2024-01-29 06:00:00.0002202821
    ...
    2493
    96KB
    80s