Run a node on Windows
Last updated
Last updated
Environment: Windows 10
download link: https://github.com/starcoinorg/starcoin/releases/latest
The newly created directory should not contain spaces and special characters.
In addition, prepare a data directory;
The completed result is as follows:
Enter the decompressed "starcoin-artifacts" directory, enter cmd in the address bar and press Enter (there should be starcoin.exe
in the directory), and enter the following command at the command prompt:
Hint:
If there is a pop-up window prompting permission after running the command, please allow it;
After the tutorial, enter the cmd window. If no special instructions are given, it will be entered in the decompressed directory;
This command is to view the help. The first line will return the software version. The screenshot of the command is as follows:
After running the following command, do not close the window. To execute other commands, please open a new cmd window.
Hint:
^ at the end of each line: indicates that the command is not over and requires a newline;
--net main: The network to start, the main network is main, and the test network is barnard;
--miner-thread: The number of mining threads, which can be adjusted appropriately. If no mining is required, it can be set to 0;
--node-name: node name, optional;
--data-dir: Data storage directory, where C:\starcoin\node\data is the data directory created in the second step, which can be modified according to the situation;
--stratum-address 0.0.0.0 --stratum-port 9880: start the mining pool function;
Screenshot below:
Point 1:
Http rpc address: Some(http://0.0.0.0:9850)
TCP rpc address: Some(tcp://0.0.0.0:9860)
Websocket rpc address: Some(ws://0.0.0.0:9870)
Point 2:(This is very important!!!)
Ipc file path: \.\pipe\starcoin\main\starcoin.ipc
Point 3:(data directory, the migration node can be copied and used to reduce the time-consuming of block synchronization.)
Final data-dir is : C:\starcoin\data\main
Prerequisite: Node is running
Connect to the console and see that starcoin%
is returned at the end, which means that you have successfully reached the console:
Prerequisite: Connecting the Starcoin console
View the default account:
Export the private key of the default account:
As shown in the figure below, the account and private key (private key) are exported, and the private key must be saved! ! !
You must wait for node data synchronization to complete to see the final balance.
Command:
Website: https://stcscan.io