VeBetterDAO
VeBetterDAO Hooks
The hooks provide tools for interacting with VeBetterDAO's smart contracts and features:
Galaxy Member Hooks
useB3trDonated: Fetches the amount of B3TR tokens donated for a given token IDuseB3trToUpgrade: Retrieves the amount of B3TR tokens required to upgrade a specific tokenuseB3trToUpgradeToLevel: Gets the amount of B3TR needed to upgrade to a specific leveluseGMBaseUri: Retrieves the base URI for the Galaxy Member NFT metadatauseGMMaxLevel: Fetches the maximum level possible for Galaxy Member NFTsuseGMbalance: Gets the number of GM NFTs owned by an addressuseGetNodeIdAttached: Retrieves the Vechain Node Token ID attached to a given GM Token IDuseGetTokenIdAttachedToNode: Gets the GM Token ID attached to a given Vechain Node IDuseGetTokensInfoByOwner: Fetches token information for a specific owner with infinite scrolling supportuseIsGMclaimable: Determines if a user can claim a GM NFTuseLevelMultiplier: Gets the reward multiplier for a specific GM leveluseLevelOfToken: Retrieves the level of a specified tokenuseParticipatedInGovernance: Checks if an address has participated in governanceuseSelectedGmNft: Comprehensive hook for retrieving data related to a Galaxy Member NFTuseSelectedTokenId: Gets the selected token ID for the selected galaxy memberuseTokenIdByAccount: Retrieves the token ID for an address given an index
Node Management Hooks
useGetNodeManager: Gets the address of the user managing a node ID (endorsement) either through ownership or delegation
Rewards Hooks
useVotingRewards: Manages voting rewards functionalityuseVotingRoundReward: Handles rewards for specific voting rounds
Usage Example
Was this helpful?