VeBetterDAO: list xApps with on-chain status, roles and IPFS metadata
getVeBetterDaoAppsRetrieve VeBetterDAO xApps directly from the on-chain registry, including roles, endorsement status, and IPFS metadata. Filter by app ID, category, or active voting round.
Instructions
List VeBetterDAO xApps directly from the on-chain X2EarnApps registry. For each app returns: id, on-chain name, owner (teamWalletAddress), createdAtTimestamp, roles (admin, moderators, creators, rewardDistributors), endorsement status (isEndorsed, endorsementScore vs threshold, isUnendorsed/grace period, isBlacklisted, isEligibleNow), whether the app is active in the current XAllocationVoting round, and IPFS metadata (description, website, logo, banner, social links, categories, distribution_strategy). Supports filtering to a single appId, to apps active in the current round, and by category (array of category ids, case-insensitive, OR semantics — sourced from IPFS metadata). Uses the VeChain SDK multicall for efficiency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | Optional bytes32 app id; if provided, only that app is returned | |
| categories | No | Optional array of category ids to filter apps by (case-insensitive, OR semantics). Categories live in the IPFS metadata, so includeMetadata is forced to true when this is set. Known mainnet categories: nutrition, plastic-waste-recycling, fitness-wellness, renewable-energy-efficiency, sustainable-shopping, green-mobility-travel, pets, education-learning, green-finance-defi, others (deprecated: social-community-activism, carbon-footprint). | |
| includeRoles | No | Fetch admin/moderators/creators/rewardDistributors per app | |
| includeMetadata | No | Fetch off-chain IPFS metadata (description, logo, socials, categories...) | |
| includeEndorsers | No | Fetch endorser addresses per app (extra on-chain calls) | |
| includeUnendorsed | No | Include apps currently in grace period (lost endorsements) | |
| metadataConcurrency | No | Concurrency limit for IPFS metadata fetches | |
| onlyActiveInCurrentRound | No | Return only apps included in the current round of voting |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| network | Yes |