Get DAO Token Owners
Fetch all token owners of a DAO.
Each DAO is represented by a realm id. Given a realm address we can fetch all the token owners who are part of that DAO. For this, we need to focus on TokenOwnerRecordV1 and TokenOwnerRecordV2 accounts.
Few fields of our interest are
governingTokenMint: Token address which governs the DAO.
governingTokenDepositAmount: How much tokens have been deposited by the user.
governingTokenOwner: The user who owns the governing token.
You can run this code in replit to see it in action.
Last updated