MoDeFiGPC - tokens holders and supply
    Updated 2025-05-15
    with tokens_data as (
    select *
    from $query('75f58bb3-b2cd-4208-85e9-e3d75d901a1c')),

    holders as (
    select * from
    (select user, contract, sum(amount) as balance
    from
    (
    select from_address as user, -RAW_AMOUNT_PRECISE as amount, tx_hash, contract
    from polygon.core.fact_token_transfers
    join tokens_data b
    on contract=CONTRACT_ADDRESS
    where BLOCK_TIMESTAMP::date>=start_date
    union all
    select to_address, RAW_AMOUNT_PRECISE, tx_hash, contract
    from polygon.core.fact_token_transfers
    join tokens_data
    on contract=CONTRACT_ADDRESS
    where BLOCK_TIMESTAMP::date>=start_date)
    group by 1,2)
    where balance>0
    )


    select b.symbol, a.contract, count(*) as users, sum(balance/pow(10, decimal)) as supply, round
    from holders a
    join tokens_data b
    on a.contract=b.contract
    where balance/pow(10, decimal)>=0.00000001
    group by 1,2, round

    Last run: 13 days agoAuto-refreshes every 1 hour
    SYMBOL
    CONTRACT
    USERS
    SUPPLY
    ROUND
    1
    PolyDoge0x8a953cfe442c5e8855cc6c61b1293fa648bae47225992110000000000000004
    2
    XENX0x0f29965ca5f1111b073efa37a739dd2fafab11e021190000000001
    3
    NEUS0x1d9ccbe51cc6b4deeeca686d409561cf9f801fbc7310000000001
    4
    KIRANA0xfec68cbf04f7c069628cf9e9c609abc95f9a476b7310000000001
    5
    GONE0x162539172b53e9a93b7d98fb6c41682de558a32022952693391694101
    6
    IGS0xe302672798d12e7f68c783db2c2d5e6b48ccf3ce2201000000001
    7
    DONR2D20x97b2cb568e0880b99cd16efc6edff5272aa026763510000000003
    8
    SPK0x313ef6965f7a94d8e13602a52734833b0d566f855542000000002
    9
    LZR0x2fc359fc903040ac5d34ff9d50802e1fe0ced8fe4710000000001
    10
    MOS0x572e6feff8cf6ef5ce9bcd3dde4ac1343f681d91742000000002
    11
    DOPE0x0517c158eba9ac34961b958686a45e52a221df392010000000001
    12
    FYI0xa4c5ac734d05dbc97d5934f4b9c21f18590215112610000000002
    13
    HIN0xaf3b9202f8b324830d9b6c4ddfb447a0ba7f7fc5149999999991
    14
    KC0x784665471bb8b945b57a76a9200b109ee214e7895840979098309.9394191
    15
    DHG0x75c0a194cd8b4f01d5ed58be5b7c5b61a9c69d0a1531000000001
    16
    GRANTS0xdb7a2607b71134d0b09c27ca2d77b495e4dbeedb12610000000002
    17
    UNT0x4538727d7198e06019986bf2e1f562b5efdca909722000000002
    18
    BORGER0x90880ee788963585525241bac32e7c99c3d0630f16883100000000001
    19
    NOMAD0xd7b0c417365b63f098c1c4ad2ced35982d6488766410000000001
    20
    ACHAD0xa1a78ac9884adc9d04d59b2b743f1ec709618e55526812690.195767944
    63
    4KB
    456s