Bitcoin command line mining
You can't dig in a day. It takes 2000 years
the global unified computing difficulty of bitcoin is 2621404453 (expected to change in two days). It takes more than 2000 years for a 2.5GHz CPU to work out a bitcoin
in order to make the graphics card fully loaded for a long time, the power consumption will be quite high, and the electricity bill will be higher and higher. Many professional mines at home and abroad are operated in areas with extremely low electricity charges, such as hydropower stations, while more users can only mine at home or in ordinary mines, so the electricity charges are not cheap. Even in a certain residential area in Yunnan, there was a case of crazy mining, which led to a large area trip of the residential area, and the transformer was burned
extended data:
bitcoin network generates new bitcoin through "mining". In essence, the so-called "mining" is to use computers to solve a complex mathematical problem to ensure the consistency of bitcoin network distributed accounting system
bitcoin network will automatically adjust the difficulty of mathematical problems, so that the whole network can get a qualified answer about every 10 minutes. Then bitcoin network will generate a certain amount of bitcoin as block reward to reward the person who gets the answer
when bitcoin was born in 2009, block rewards were 50 bitcoins. Ten minutes after its birth, the first 50 bitcoins were generated, and the total amount of money at this time is 50. Then bitcoin grew at a rate of about 50 every 10 minutes. When the total amount reaches 10.5 million (50% of 21 million), the block reward will be halved to 25
when the total amount reaches 15.75 million (5.25 million new output, i.e. 50% of 1050), the block reward will be further halved to 12.5. The monetary system used to have no more than 10.5 million in four years, after which the total number will be permanently limited to about 21 million
first of all, mining is the main way to obtain bitcoin, but the current threshold of mining is relatively high. If you choose to mine by yourself, first you need to understand certain technology, then download the bitcoin client and mine by yourself according to the online bitcoin mining tutorial
however, in theory, bitcoin can still be mined with computers or graphics cards. However, e to the development of mining instry in recent years, the whole network computing power of bitcoin is extremely terrible (more than supercomputers), so if you want to mine with computers or graphics cards, you can't find bitcoin, If you want to dig bitcoin, you still need to buy mining machines. Now the better mainstream mining machines in the market have to be tens of thousands. Of course, there are cheap second-hand mining machines, but these second-hand mining machines are all obsolete ones, and the electricity cost of mining is relatively high
in addition to the second way of direct purchase, the digital currency exchange is a special place for bitcoin trading. If you want to own a bitcoin, you can buy it directly with money. However, it should be noted that there are many digital currency exchanges in the market at present. Many small exchanges are specialized in cutting users and eating customer losses for a living. Therefore, when choosing an exchange, it is better to focus on the head exchange. For example, Hufu, one of the head exchanges in China, I have been using it for nearly two years, and it is very stable and safe.
2 after successful registration, we will see a message like "your account has been successfully registered and logged in!" on the web page, It means that we have successfully registered and logged in
3 we can click the "dashboard" button in the upper left corner to see the whole monitoring status of the account
note: in this monitoring dashboard, we are most concerned about "total earnings", which is the bitcoin earned by our current account. In the future, as long as we open the website and enter the monitoring dashboard, we can see the relevant information of our account
4 next, please click "Settings" in the navigation bar of the page. In the settings page, we can set the e-mail address, bit wallet address, change the password, etc.
5 if we set the e-mail address in the account, if we forget the password or steal it in the future, we can restore the password through the set e-mail. First, enter our common email address in the "email address" column, and then click the "change" button
6. Next, a confirmation email will be displayed on the page to confirm that it has been sent to our previously set email
7. Then we open our email and find the email sent by BTC guide. Click the confirmation link, and then the page will show that our email has been successfully set
8. If we set email in the account setting, we can also set email notification for the behavior of mining miners. Find the "idle warnings" column on the setting page, click the drop-down list, select the time when you want to send the email, and then click the "change" button on the right. When we set 10 minutes later, if a miner stops mining, the system will automatically send a notification email to our email after 10 minutes. After receiving the email, we knew that the miner was on strike
9 in addition, we are more concerned about the "bitcoin wallet", that is, the wallet address. You don't need to set this address first. It's not too late for me to fill in when I really get bitcoin
10 after the account is set up, we need to set "worker". What is a worker? This is the login account name we will use later on the bitcoin mining client. The system will create a miner name for us by default. The miner name is composed of our registered account name, an underline and a number. For example, our registered account is XXX, and the first miner's name is "XXX"_ 1 "
11 if we want to set multiple miner names, enter a number such as" 2 "in the" create worker "column, and then click the" create "button to add a new miner's account name
12 in the worker settings page, we can also set the mining payment mode of the mine account separately. Payment method, i.e. mining payment method. There are two types to choose from, PPS and PPLNs. The difference lies in the mining mode and handling charge. The handling charge of PPS is 7.5%, while that of PPLNs is 3%. The system adopts PPLNs by default. If you want to change it, please click the "change" button under the payment method
13 in addition, we can also choose the difficulty of mining mode. If our computer has multiple graphics card GPUs or some special machines, we can set the miner's account name under the minimum difficulty
Step 2, download the mining client software
1 after we complete the registration setting, Next, please click "support" in the page navigation menu, and we will see the download link of the client< There are two types of mining client software:
bfgminer: command line operation interface, which can be downloaded directly
cgminer: it is also operated in the command line format, but the download steps are too complicated
let's take bfgminer as an example and click download as shown in the figure
2 then it will jump to the download page of mining tools. There are two formats of mining tools, one is 32-bit system, the other is 64 bit system. According to the number of system bits, download the corresponding tool version
3. The client size of mining tool is less than 5m, which is a zip compressed file. When the download is complete, locate and open the file. Click the right mouse button and select the "" option
4 here, I take paste extraction to the desktop as an example
Step 3, mining client software detailed settings
1 after opening the mining directory, double-click to open the "bfgminer" file under the directory
2 next, look at the BFG minier window and enter the address of the mine pool at the URL. The pool address can be seen in the BTC guide's support page, such as stratum. Btcguild com:3333 , press enter key
3, and then enter the miner's name set on BTC guide website after the user name, press enter key
4, and then enter at will in the password, as shown in the figure
5. Finally, you can see that many numbers are changing, It means mining. It is worth noting that the places marked in the figure indicate the speed of the current machine button
6 in addition to the current mining speed on the mining client software, we can also see the specific mining speed of each miner in the "active worker summary" list on the "dashboard" page of BTC guide website
7 If you want to close the mining tool, you can directly x drop it, You can also directly press the Q key to exit. If you want to open more, you can open another mining tool in the BFG miner directory< Step 4: cgminer command line client software
1 if you really want to mine, the official recommends that we use "cgminer", that is, to run it at the command prompt. Click "support" on BTC guide page, then click "cgminer" download link page, select the corresponding system version
2, then jump to cgminer download page and click the link as shown in the figure
3 and then select a version of cgminer. Here I download a Windows version as an example.
4 take the Windows version of cgminer as an example. After the download, unzip it to the computer.
5 open the cgminer directory, find "cgminer"
6. Double click "cgminer" with the mouse, and a command-line window will pop up, prompting us to enter the URL address of the connection server. Enter "stratum. Btcguild com:3333 ”, press the Enter key on the keyboard
7, and then prompt us to enter "user name", that is, the account name of the miner. Press the Enter key on the keyboard
8, and then enter the password. Press the Enter key on the keyboard
9, and wait for a moment, When the client and the service establish a connection, the machine will start mining
10 to quit mining, please press the "Q" key on the keyboard in the window
tools / raw materials
PC with independent graphics card
precautions
if you are using cgminer, the graphics card must support the display of general computing standard, otherwise you will not be able to mine.