Open Cap Table Protocol Canton SDK - v0.2.224
    Preparing search index...

    Function validateContractId

    • Validate that a value is a valid Canton contract ID. Contract IDs are typically in format: hexdigits:hexdigits or just hexdigits.

      Parameters

      • value: unknown

        The value to validate

      • fieldPath: string

        Dot-notation path for error messages

      Returns asserts value is string

      if the value is not a valid contract ID