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

    Function decodeCompiledCashAssemblyEvaluation

    • Decodes compiled CashAssembly evaluation bytes into a string representation.

      'evaluationDecodeMode' determines how the evaluation bytes are interpreted and presented. Use bigint for numeric values like satoshis, utf8 for text labels, hex for binary data such as hashes, and boolean to represent boolean values.

      Parameters

      • compiledResult: Uint8Array

        The compiled evaluation bytecode.

      • OptionalevaluationDecodeMode: CompiledCashAssemblyDecodeMode = 'utf8'

        The decode mode used to convert bytes to text.

      Returns string

      The decoded value as a string suitable for inline replacement.

      CashAssemblyVmNumberDecodeError When evaluationDecodeMode is bigint and the bytes are not a VM number.