Installation instructions CREDITS Desktop Wallet

Please follow the instructions below to correctly install the new version of Node with a built-in wallet.

Step 1. Download CREDITS.exe

Step 2. Open this file as administrator by right-clicking on the icon. To install CSNODE, click Next to install

Step 3. If you want to create a program icon on the desktop, simply click ‘Next’, if you don't want this, uncheck it

Step 4. The program OpenVPN will be automatically installed and started after the installation. This program sets up a secure remote connection to the server . If your NAT is dynamic, you need to use a VPN to bypass it. OpenVPN will automatically assign you an IP address in the network, and you will become a full network node.

Step 5. Download new version of JAVA SE Development Kit from the Oracle website, select your operating system version, and install it according to the instructions on the screen

Step 6. Launch CSWALLET from the desktop

CSWALLET  is a desktop version of the wallet. It has the distinguishing feature of operation with smart contracts. The wallet works only in conjunction with running CSNODE that is started automatically prior to launching CSWALLET.

Step 7. When you first open the program, it will ask to choose the application to open itself, take the first one in the list of Java Platform SE binary

Step 8. Great! You can now use a local version of the wallet on your computer.

Creating a new token and smart contracts management

A smart contract is added through the Wallet app. If you want to do this, follow these steps:

  1. Install a Node, i.e. a client app for CS
  2. Download and install Java SE Development Kit 8u161 choosing the correct version depending on the operating system settings of the computer.

Next, run consecutively CSNODE, CSSMARTCONTRACTS and CSWALLET.

To use the application, you need to register or log in using public and private keys. Then click the "SMART CONTRACT” in the main window of the wallet.

Next, a dialog box appears with a built-in code editor and a feature tree of the smart contract. In the editor box, a text template is created for writing a contract, and it includes the following base frame:

"public class Contract extends SmartContract { ... }",

The process of initialization of the variable "total" (reflects the starting balance in the currency of the token) happens as well

"public Contract() {

    total = 0;

}».

Creating a new token

In addition to CS tokens used for transactions within smart contracts, other tokens can be used, and these tokens can be created in the opened window. In order to create a new token for a smart contract, you must change the value of total: set a random value greater than 0, for example, 500, and click DEPLOY.

When saved successfully, the information window will display the address of the token in the format "CSTxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" which is copied to the clipboard. Attention! You cannot add new information to the clipboard after key generation in order not to lose the key number.

Immediately after this, switch to ‘New Coin’ window. The generated key will be automatically inserted in the field ‘Put Contract Smart Token’, and then specify the value in the box ‘Put Coin Mnemonic’ (this is a token name). Next, click ‘Save’. You have created a token and added it.

To select a token for the transaction, you need to select the created token from the list ‘Select Coin’.

To the right of the window for selecting a token, you can see that the balance of the created token is equal to the given total value, in this case 500.

When you install the client application, the following error may happen.

You need to check the settings of the system variable path to solve it.

Perform the following steps to do this:

  • Download and install Java SE Development Kit 8u161 choosing the correct version depending on the operating system settings of the computer.
  • Go to menu Settings > System > About > System Information.
  • Choose Advanced System Settings > Variable Environments from the left menu.
  • Choose ‘Path’ in the window that appears in the below block ‘System variables’ and click this line twice to make changes.
  • If the window does not specify the path to the jdk, you must add it. To do this, click the Create button and add the path to the directory location of the Java jdk using the View. Example: C:\Program Files\Java\jdk.1.8.0_162\bin (the path may differ depending on the options specified during the installation).

After saving the changes and restarting the application, the problem should be fixed.