Skip to main content

Parser.getFieldSlotIndex() 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.

GetFieldSlotIndex return index of slot from 0 to 7 (each claim has by default 8 slots) for non-merklized claims

Signature:

getFieldSlotIndex(field: string, schemaBytes: Uint8Array): number;

Parameters

ParameterTypeDescription
fieldstringfield name
schemaBytesUint8Arrayjson schema bytes

Returns:

number

number