EMC CLI Download and Mining
Last updated
Last updated
Visit EMC Test Network:
As shown in the above figure, click [Connect Walllet] to proceed.
From the pop-up window, select your preferred wallet from the list on the left. Next, in the wallet plugin interface, complete the steps in the wallet Chrome extension: "Connect" -> "Authorize" -> "Sign".
Once connected, you can view your points and use an invitation code to invite friends.
After the wallet connection is completed, you can proceed and click the [Install] button in the image and select [CLI] from the dropdown list.
Choose [Windows] for the download and installation.
As shown above, select [Windows] for download and installation.
Locate the "EMC_Miner_Windows" folder on your local device. The file structure is shown below:
emc_miner_cli.exe
The command line program for EMC testnet miningï¼›
run_cli_help.cmd
Runs the command to view the help documentationï¼›
run_cpu_only.cmd
Runs the command to enable CPU-only miningï¼›
run_gpu_only.cmd
Runs the command to enable GPU-only miningï¼›
AI mining modes:
Basic mining
Advanced mining
Basic mining lets you choose between CPU-only or GPU-only mining.
Runrun_cpu_only.cmd
,right-click, and select "Run as Administrator"
Enter your private key to start CPU mining. EMC CLI automatically detects your hardware, initializes, and connects to the node. The information shown confirms successful CPU mining and rewards earned.
Note:
Before running run_cpu_only.cmd
, make sure the address has enough Gas fees (see the section on getting Gas fees). Otherwise, errors will occur, and mining won't start.
To view your CPU mining rewards, go to the EMC testnet explorer and enter your mining address.
To stop mining, press Ctrl + C
in the command terminal and enter Y
to confirm.
Run run_gpu_only.cmd
, right-click, and select "Run as Administrator." In the command terminal, enter your private key.
As shown in the image, before starting GPU mining, ensure that the Windows version of Docker is successfully installed and the Docker service is running. Otherwise, mining cannot proceed.
Note:
Before running run_cpu_only.cmd
, ensure that the address has sufficient gas fees (access the gas fee allocation section). Otherwise, an error will occur, preventing successful mining.
To clearly understand and verify CPU mining earnings, enter your mining address in the EMC testnet browser to check.
During mining, press Ctrl + C
in the command line terminal to stop mining. In the command prompt that appears, enter Y
to confirm the termination operation.
EMC CLI advanced mining supports simultaneous CPU and GPU mining, as well as enabling multi-threaded mining.
emc_miner_cli
Command Line Parameters
First, locate the parent directory of the emc_miner_cli.exe
program, for example: "D:\EMC_Miner_Windows-1.5.0\EMC_Miner_Windows\"
. Then, in the CMD terminal, enter the relevant commands as shown in the image:
Refer to the help documentation by entering the following command:
Description :
cpu_enable
: Enable or disable CPU mining.
cpu_thread
Specifies the number of CPU threads to use.
gpu_enable
: Enable or disable GPU mining.
- gpu_model
: Specify the GPU serial number to use.
gpu_thread
Specifies the number of GPU threads to use.
miner_private
: Your wallet private key (required).
Default CPU miningIn the CMD client, enter the following command and press the Enter key:
As shown in the image above, the default CPU mining is successful.
In the CMD client, enter wmic
to check the number of CPU cores and threads on the computer:
The image shows that the local computer's CPU has 24 cores and 32 threads. Then, enter the mining command and press the Enter key:
Description :
Number of threads
: Set according to the number of your CPU cores (for example, use 10
threads).
Your wallet private key
: Replace with your actual wallet private key
The figure shows that EMC CLI successfully mined CPU with 10 threads.
Specify GPU serial number for mining
For devices with multiple graphics cards installed, EMC CLI supports specifying a GPU serial number for mining.
View GPU serial number
Before starting GPU mining, you need to check the available GPU serial numbers in your computer.In the CMD terminal, enter the following command and press the Enter key:
Specify GPU miningIn the cmd end point, enter the following:
As shown in the above figure, GPU 1 is designated for mining.
Note:
Before starting mining, ensure that the Docker Engine is running. Otherwise, the following error occurs:
Multi-threaded GPU mining
At the cmd end point, enter the mining command and press Enter :
Description :
GPU serial number
: The selected GPU serial number.
Number of threads
: The number of threads allocated to the GPU mining task (e.g., using 4
threads).
Your wallet private key
: Replace with your actual wallet private key
As shown in the above figure, specify graphics card 1 and start 4 processes for GPU mining.
EMC CLI CPU and GPU Dual Mining
To improve overall mining efficiency, EMC CLI supports multi-threaded participation in both CPU and GPU mining simultaneously.In the CMD terminal, enter the mining command and press the Enter key:
Description :
GPU serial number
: The selected GPU serial number.
Line CPU thread count
: The number of threads allocated to the CPU mining task (e.g., using 10
threads).
Number of line GPU threads
: The number of threads allocated to the GPU mining task (e.g., using 4
threads).
Your wallet private key
: Replace with your actual wallet private key
As shown in the image above, specify GPU 1 and allocate 4 processes for GPU mining and 10 processes for CPU mining.
Note: During the wallet connection process, follow the prompt to switch to the EMC Testnet network (Visit ).