• Parse a piece of string text as Clarity value syntax. Supports all Clarity value types (primitives, sequences, composite types).

    Parameters

    • clarityValueString: string

    Returns ClarityValue

    Example

    const repr = Cl.parse("u4");
    const repr = Cl.parse(`"hello"`);
    const repr = Cl.parse('(tuple (a 1) (b 2))');

Generated using TypeDoc