Function run

  • This function takes in a string of code and returns a program struct


    • code: string

      The code to be run

    • wallet: Wallet

      The wallet to be used to sign the transaction (provider must be set)

    • targetDARCAddress: string

      The address of the DARC contract to be used, if any. Leave blank if not needed.

    • darcVersion: DARC_VERSION = DARC.DARC_VERSION.Latest
    • Optional delegateToAddress: string

    Returns Promise<void>


Generated using TypeDoc