Parameters for compiling the CashAssembly string.
Parameters for compiling CashAssembly string.
Text that may embed CashAssembly evaluations such as $(<fee>) or $(<expiry.toIso8601>).
OptionalevaluationDecodeMode?: CompiledCashAssemblyDecodeModeThe mode to decode compiled evaluation bytes into a string.
OptionaltemplateVariables?: XOTemplate["variables"]Optional template variable definitions. When provided, each <name.method> push whose hint
maps to a supported primitive class is resolved to bytes before CashAssembly compilation.
Used for both primitive method evaluations and normal CashAssembly compilation.
Compiled text with all evaluations replaced by decoded string values.
CashAssemblyRequiredVariableMissingError When a required variable is not present in the variables map.
CashAssemblyPrimitiveMethodMissingError When a supported primitive hint has an unknown method.
CashAssemblyPrimitiveVariableMissingError When a supported primitive method is missing its runtime value.
CashAssemblyUnsupportedValueTypeError When a primitive method return type cannot be embedded as bytes.
CashAssemblyNumberNotSafeIntegerError When a number variable is not a safe integer.
CashAssemblyVmNumberDecodeError When evaluationDecodeMode is bigint and an evaluation is not a VM number.
Compiles all CashAssembly evaluations in a text string and replaces each evaluation with a decoded string representation.