Function compileCashAssembly

  • Perform a simplified compilation on a CashAssembly script containing only hex literals, bigint literals, UTF8 literals, and push statements. Scripts may not contain variables/operations, evaluations, or opcode identifiers (use hex literals instead).

    This is useful for accepting complex user input in advanced interfaces, especially for AddressData and WalletData.

    Returns the compiled bytecode as a Uint8Array, or throws an error message.


    • script: string

      a simple CashAssembly script containing no variables or evaluations

    Returns string | Uint8Array

Generated using TypeDoc