Flipside CommunityPolygon Wrapped: Activities of Super Users
    Updated 2025-02-04
    with super_users as (
    select distinct from_address
    from polygon.core.fact_transactions
    where nonce = 99 -- nonce starts with 0, so nonce 99 is the address's 100th tx
    ),

    swapper as
    (
    select
    'DEX swappers' as type,
    count(distinct s.origin_from_address) as number_of_users
    from polygon.defi.ez_dex_swaps s
    inner join super_users u on s.origin_from_address = u.from_address
    where s.block_timestamp::date >='2023-01-01'
    and s.block_timestamp::date < '2024-01-01'
    ),

    nft_minter as
    (
    select
    'NFT minters' as type,
    count(distinct m.nft_to_address) as number_of_users
    from polygon.nft.ez_nft_mints m
    inner join super_users u on m.nft_to_address = u.from_address
    where m.block_timestamp::date >='2023-01-01'
    and m.block_timestamp::date < '2024-01-01'
    ),

    nft_buyer as
    (
    select
    'NFT buyers' as type,
    count(distinct s.buyer_address) as number_of_users
    from polygon.nft.ez_nft_sales s
    inner join super_users u on s.buyer_address = u.from_address
    where s.block_timestamp::date >='2023-01-01'
    Last run: 3 months ago
    TYPE
    NUMBER_OF_USERS
    1
    DEX swappers641598
    2
    NFT buyers227164
    3
    NFT sellers145295
    3
    70B
    312s