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

    Function damlMonetaryToNativeWithValidation

    • Convert DAML monetary data to native OCF format with validation. This function handles untyped data from DAML contract responses and validates that amount and currency fields are present and correctly typed.

      Parameters

      • monetary: Record<string, unknown> | null | undefined

        The raw monetary object (or null/undefined)

      Returns Monetary | undefined

      The validated native monetary object, or undefined if input is null/undefined

      OcpValidationError if amount or currency are invalid