-
Notifications
You must be signed in to change notification settings - Fork 2
Running the Matryx Ethereum Private Chain [Windows]
To begin, download our Matryx-Alpha repository. This will give you access to our private Ethereum blockchain, provide you the means to import your MTX-positive Ethereum key, and begin interacting with our smart contract.
Now run command prompt as an administrator. Once you’ve done this, go ahead and navigate to the local-node-windows directory inside of that unzipped Matryx-Alpha directory.
cd C:/the/path/to/Matryx-Alpha/local-node-windows
There are a few more commands you’ll need to enter to get everything up and running. To start the process, let's open up a geth console configured for the Matryx private chain. To do this, run SetEtherbase.bat. If you’re interested, feel free to look at the command we’re running. Additionally, and if you really don’t trust us, you can independently download Geth to ensure we’re not doing any funny business (be sure to place the executable in the same directory ours is in though). Once the console has opened, type:
web3.personal.importRawKey('[private key]', '[passphrase]')
(where ‘[private key]’ is your private Ethereum key in quotes and ‘[passphrase]’ is your passphrase in quotes).
Next, set your Etherbase and Default account to your newly-imported MTX-containing account. You’re almost ready to make your first Matryx Submission.
web3.miner.setEtherbase(‘[public key]’)
web3.eth.defaultAccount = web3.personal.listAccounts[0]
Next, exit the console by typing:
exit
Then type:
enter_the_matryx.bat
and hit Enter. At this point, you should now have a console again. Finish the setup by running the following:
web3.personal.unlockAccount('[public key]', '[passphrase]', [number of seconds to keep account unlocked])
Here again, ‘[public key]’ is your public key in quotes, ‘[passphrase]’ is your passphrase in quotes, and the third parameter is how long you’d like your account to remain unlocked. This one is up to you, however we recommend an amount of time no longer than you plan to spend using Calcflow. (3600 seconds is one hour.) This being said, closing the command prompt window will always lock your account again.
Congrats! You now have the Matryx Private chain node running locally. Now you can interact with the Matryx Platform directly or you can use one of our Matryx Interfaces such as Calcflow and more.