Skip to main content

Parser.parseSlots() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

ParseSlots converts payload to claim slots using provided schema

Signature:

parseSlots(credential: W3CCredential, schemaBytes: Uint8Array): ParsedSlots;

Parameters

ParameterTypeDescription
credentialW3CCredentialVerifiable Credential
schemaBytesUint8ArrayJSON schema bytes

Returns:

ParsedSlots

ParsedSlots