Professional Documents
Culture Documents
CryptoKhan Preliminary Nodesetupnotes
CryptoKhan Preliminary Nodesetupnotes
CRYPTOKHAN
for clients that had already purchased older versions of the script.
The user of CryptoKhan products and services has acknowledged that all contents
of the disclaimer have been read and agreed to before usage of this CryptoKhan
script environment. By using this script environment for CryptoKhan scripts, you are accepting
=======================
1. NODE.JS INSTALLATION
a. Visit:
https://nodejs.org/en/
In this case, Node is used to run CryptoKhan scripts that will interact with the Tron Network.
b. Click the green button on left for Long Term Support (LTS) version
c. Node Setup Wizard will open and move through following steps:
- Destination Folder: Leave as default and click next (no change needed)
- Tools for Native Modules: Don't add the automatic installation. Click next (no change needed)
d. To confirm Node has been downloaded, open command prompt (cmd, Windows) or Terminal
(MacOS) and enter:
node -v
This will show the version that is installed. It should match the version just installed.
If the user already has a desired IDE, this step can be skipped.
If the user does not have an IDE set up, the recommended IDE is Atom, a user-friendly text editor,
a. Visit:
https://atom.io/
b. Click the yellow Download button for the latest version to match your system.
c. Proceed through download and installation steps. Successful completion will be noted
with the Atom editor window opened along showing the welcome message.
- Click the blue "install" button next to "script" (Version 3.25.0 as of March 2020).
The desired package will be the first result and have over 2.5 million downloads.
With the script package installed, each script can be easily read, edited, and run from within Atom.
Windows:
MacOS:
Successful use of the 'script' package when running the script will be shown with a console window
that will open and present all the script messages at the bottom of the Atom window.
---------------------------------------------------------------------------------------------------
The following steps are done once the script packages are purchased.
Before beginning use of the purchased CryptoKhan script, the desired wallet's private key needs to
be set up for interaction through Node.js directly with the Tron Blockchain.
The private key is stored in the Keychain or Credentials Manager of your chosen computer. This data is
The Keytar folder is separate from the purchased CryptoKhan script folder. Once the private key is set up
within this folder's file as instructed below, it is recommended to delete this folder as to not contain any
written, unencrypted copies of the private key. In addition, use of an alternative wallet with funds only
c. Click on the 'index.js' file. This is where the private key will be set for Keytar to use.
d. Choose a Username:
- Enter the username in the text quotation field next to the myUsername variable.
- Make note of what you put here. This username will be used in the specific CryptoKhan script
- The username is specific to the private key that you set. If you want to add multiple private keys
(recommended for different scripts),
- Enter the private key string into the text quotation field next to the privateKey variable.
f. Run script:
In Atom: Ctrl+Shift+b (Windows) or Cmd + i (MacOS)
- Wait for completion. You can check if the key has been set by opening Credentials Manager (Windows)
or Keychain (MacOS)
- If you want to add a new privateKey, re-download the folder and input a new username. Then, run
script to set the key.
2. CRYPTOKHAN SCRIPT
Now, the user is ready to set up the specific purchased script. These steps will be given
=================================================