@xo-cash/utils
    Preparing search index...

    Function serializeTemplate

    • Serializes an XOTemplate to a JSON string. Encodes bigint and Uint8Array fields in Extended JSON format so they can be reconstructed by deserializeTemplate.

      Parameters

      • template: XOTemplate

        The template to serialize.

      Returns string

      A JSON string representation of the template.

      If the template cannot be serialized to JSON.