How to mine bitcoin
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 exchange, one of the leading exchanges in China, has been in use for nearly two years and is still very stable and safe.
Find the code on the bitcoin system, and you can dig bitcoin if you find the code
every other time point, the bitcoin system will generate a random code on the system node, and all computers in the Internet can search for the code. Whoever finds the code will proce a block, and then get a bitcoin. This process is often called mining. Computing this random code requires a lot of GPU operations, so the miners purchase a large number of graphics cards to get bitcoin profits more quickly, which is also an important reason for the recent shortage of graphics cards
extended information:
characteristics of bitcoin
The total amount is limited, only 21 million BTC2. Anyone can issue bitcoin, but it is more and more difficult
3. Compared with the central bank currency, it is safer and almost impossible to be stolen
The transaction process is completely anonymous and cannot be tracedStep 1: prepare mining machines and pools
if you want to dig bitcoin, you must prepare professional equipment. At present, there are many professional mining machines on the market, and the pool is also essential. When you choose a pool, you should also compare the output and income gap of each pool, and then choose the most suitable one
Step 2: register and set the mine account
after the mine is ready, register the mine account and set a common email. When setting the mine account, each CPU or GPU needs to set a mine account
Step 3: download the bitcoin miner
after you register and set up your account, you need to download the bitcoin miner. When downloading the miner, be sure to choose the miner that can make your CPU and graphics card play the most function. After downloading, set the server, user name, password, device and so on
Step 4: Mining
after setting up the miner, click the "start mining" button, the miner will enter the state of full speed operation, and the miner will start mining automatically.
1、 Mining principle
at the beginning, we could dig bitcoin with the computer CPU. The founder of bitcoin, Nakamoto Tsung, g out the world's first creation block with his computer CPU. However, the era of CPU mining has long passed, and now bitcoin mining is the era of ASIC mining and large-scale cluster mining
looking back on the mining history, bitcoin mining has gone through the following five times: CPU mining → GPU mining → FPGA mining → ASIC mining → large-scale cluster mining, The mining speed changes are as follows:
CPU (20mhash / s) → GPU (400mhash / s) → FPGA (25ghash / s) → ASIC (3.5tash / s) → large scale cluster mining (3.5tash / s * x)
mining speed, which is called computing power in professional terms, that is, the ability of computer to generate hash collisions per second. In other words, how many hash collisions can our miner do per second is the calculation force. Computing power is the ability to dig bitcoin. The higher the computing power, the more bitcoin you dig, the higher the return
in the world of bitcoin, a data block is recorded about every 10 minutes. All mining computers are trying to package the data block and submit it, and the person who successfully generates the data block will get a bitcoin reward. Initially, bitcoin rewards of 50 bitcoins could be generated about every 10 minutes. But the payment is halved every four years, and now the bitcoin network can generate 25 bitcoins every 10 minutes
to successfully generate data blocks, miners need to find the effective hash value. To get the correct hash value, there is no shortcut. You can only guess. The process of guessing is the process of computer random hash collision. If you guess correctly, you will get bitcoin
Mining method: from a miner to a large-scale mine, you need to prepare a miner, a computer that can connect to the Internet, an AUC, a raspberry pie, power supply and all kinds of connecting lines, etc. The connection order of various devices is network cable - & gt; Raspberry pie - & gt; Microusb cable - & gt; AUC-> 4Pin cable - & gt; Mining machine and power supply
< EM > Figure 3: Mine Map (scale of tens of thousands of mining machines) < / EM >
nowadays, the profit space of small and medium-sized absenteeism who take one mining machine home or deploy a small family workshop (dozens of mining machines) is very limited, and the mining instry is graally concentrating on enterprises and teams with low-cost power resources and professional deployment ability
there are many factors that affect the mining revenue, such as the performance and power consumption of mining machinery, the computing power and difficulty of the whole network, the deployment and operation and maintenance capacity of the mine, the availability of low-cost electricity resources, and the currency price and policy guidance, etc. At present, excellent mining enterprises have the ability of chip research and development, a lot of computing power, professional mine deployment and operation experience, etc. in the future, resources and computing power will be more and more concentrated in these mining enterprises
2. Mine pool
in addition to the above equipment, you also need a necessary tool - mine pool. The function of the mine pool is to gather a large amount of mineral computing power, increase your probability of getting bitcoin, and at the same time, distribute your future bitcoin income to your account in advance
the simple explanation is as follows: now the bitcoin network generates a block every 10 minutes, which contains 25 bitcoins. Suppose there are 1W people in the world participating in mining, then in these 10 minutes, only one lucky person has taken these 25 bitcoins, and the others have nothing. The principle of the mine pool is that everyone mines in teams and distributes according to the agreed distribution method, so that the income of the miners' bitcoin tends to be stable and the risks of the miners are reced. Let's take the most common PPS allocation method as an example. Suppose that your computing power is 10t, and the computing power of the whole mine pool is 100t. Your computing power accounts for 1 / 10 of the total computing power of the mine pool. Suppose that the mine pool can generate 10 bitcoins a day, then you can get 1 bitcoin a day
3. Cloud computing power
in reality, the supply of mining machines often exceeds the demand, and at the same time, the delivery of mining machines needs a long waiting period. Miner installation, commissioning, maintenance and other processes are very complex, which requires a lot of energy. Miners have to enre the noise and heat of miner. For miners, the biggest cost is not these, but the high electricity charges consumed by mining. The profit space of small and medium-sized miners is getting smaller and smaller, even negative
Mining income and risk mining income can be calculated by the following formula:Mining income = generated bitcoin * currency price - mining machinery cost - electricity fee - custody fee
if you are just a small miner, generally you only need to dect mining machinery cost and electricity fee
Mining risks are as follows:
< UL >at present, the number of bitcoin is less than 4.5 million. If we do not issue additional bitcoin, the price of bitcoin will fluctuate, and the price callback will lead to the extension of the payback cycle
mining difficulty improvement at present, our machines can meet the market demand
the risk of power outage
< EM >
< / EM >
When bitcoin nodes connect with each other, they will get transactions they don't have from each other. But because bitcoin has accumulated a large number of transactions for a long time, it is very difficult for two nodes to compare which transactions you are missing / which transactions I am missing one by one
to solve this problem, Nakamoto Tsung invented the important technology of block chain. Nodes use blocks to synchronize transactions, which ensures the data consistency of all nodes, and ensures the uniqueness of the blockchain by competing for block packing rights (that is, mining)
① a block and blockchain
a packet formed by a transaction over a period of time is called a block. On average, bitcoin generates a block every 10 minutes, and each block is linked to the previous block to form a blockchain
② the transaction data is synchronized with the block as a unit
the block is numbered from 1, so after node a connects with node B, it is convenient to synchronize the transaction data as long as the block number height of both parties is checked. For example, if node A's own block height is 100 and node B's block height is 110, all it needs to do is request B to synchronize the 10 blocks 101-110<
③ reward for packed blocks
in order to ensure that there are nodes to pack bitcoin transactions, bitcoin rules stipulate that nodes of packed transactions will receive bitcoin as reward
A. part of the package reward comes from the transaction fee paid by the transaction creator (100-1000 transaction fee per KB)
B. the other part comes from the initial distribution of 21 million bitcoins. At the beginning, the reward is 50 bitcoins for each block. After that, the reward will be halved for every 210000 blocks (about four years). Until about 2140, the reward for each block is less than 1, and the total reward for each block is 21 million bitcoins, This is the source of the total amount of 21 million bitcoins (2099999.97690000 to be exact)
after 2140, the package reward will only come from the transaction fee paid by the transaction creator<
④ competition for block packing right
node packing transaction only needs to consume very low-cost network and computing resources. The existence of packing reward (at present, the packing reward for each block is 25 bitcoin, about 40000 yuan), makes a large number of nodes want to pack transactions. In order to ensure the uniqueness of the blockchain, bitcoin rules stipulate that nodes use a method similar to "coin tossing" to compete for the right of transaction packaging. Nodes constantly toss coins. Whoever first throws the results that meet the rules will get the right to pack the transaction in this block, as well as the package reward of this block
Just now, as of 23:00 on March 3, bitcoin is now 71976 RMB. At the beginning, when I knew it was very expensive, I also asked this question, how to dig this thing
many mining machines with large amount of calculation will proce a lot of heat in the operation, so they need to consume a lot of electricity for cooling
of course, mining can also be carried out on a small scale with a few mining machines. At this time, you can join the mine to dig with everyone. No matter who digs in the mine, everyone will distribute according to the speed of throwing dice, which can ensure a more stable income
at present, there are many people digging bitcoin, so they have high requirements for the computing power of mining machines. At present, it costs thousands of dollars to dig a bitcoin. Therefore, we should not blindly evaluate the income risk before making a decision
I'm brother Xiaoyu. If you have any questions, please pay attention to me and leave a message below for us to discuss