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

    Function decodeCompiledCashAssemblyEvaluation

    • Decodes compiled CashAssembly evaluation bytes into a string representation.

      'evaluationDecodeMode' determines how the evaluation bytes are interpreted and presented. Choose based on what the evaluation is expected to produce: 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.

      • evaluationDecodeMode: CompiledCashAssemblyDecodeMode = 'utf8'

        The decode mode used to convert bytes to text.

      Returns string

      The decoded value as a string suitable for inline replacement.