Skip to content

parsePDPProviders

parsePDPProviders(data, cursor?): OutputType

Defined in: packages/synapse-core/src/sp-registry/get-pdp-providers.ts:163

Parse raw PDP-provider contract output into a normalized page.

Provider records are decoded into PDPProvider objects. When the contract reports more results, nextCursor is derived from cursor and the number of source providers returned. Pass the same offset used by getPDPProvidersCall; it defaults to 0n.

ParameterTypeDefault valueDescription
data{ hasMore: boolean; providers: readonly object[]; }undefinedRaw contract output getPDPProviders.ContractOutputType
data.hasMorebooleanundefined-
data.providersreadonly object[]undefined-
cursorbigint0nOffset used for the contract read. Defaults to 0n.

OutputType

A normalized page of PDP providers getPDPProviders.OutputType