Skip to content

Iterate collection.standards, run each registered builder, and return the aggregated info object. Builders that return null are dropped. A builder that throws…

buildStandardsInfo(collection, ctx, registry): Promise<Record<string, unknown>>

Defined in: packages/bitbadgesjs-sdk/src/api-indexer/info-builders.ts:109

Iterate collection.standards, run each registered builder, and return the aggregated info object. Builders that return null are dropped. A builder that throws is logged and skipped — one bad standard must not poison the whole response.

Parameters

collection

BitBadgesCollection<bigint>

ctx

StandardInfoCtx

registry

Record<string, StandardInfoBuilder<unknown>>

Returns

Promise<Record<string, unknown>>

Edit this page on GitHub