Ethereum calculator
mining: that is, bitcoin mining, is a process of using computer hardware to calculate the location of bitcoin and obtain it
1. Machine cost: the cost of purchasing mining machine
2. Power cost: the power cost consumed by machine mining
3. Auxiliary costs: personnel maintenance, network, cable consumables, heat dissipation, etc.
for a simple example, take the mining machine of ant S9, which consumes less power on the market, for example, the calculation power is 13.5T, and the power consumption is 1400W
when the mining machine runs for 24 hours: 1.4kw * 24 = 33.6 degrees
Shenma m3, which consumes more power on the market, has a calculation power of 11.5t, The power consumption is 2150w
under 24-hour operation, the power consumption of a single machine is 2.15kw * 24 = 51.6oc
which is roughly equivalent to the power consumption of energy-saving air conditioning, but the bitcoin miner needs 24-hour uninterrupted operation, the power consumption of a single machine is very large after a year's calculation, and the step price cost of household electricity is too high, When the market is not good, the income may not be enough for the electricity expenditure, so at present, mining will choose to be hosted in the mine, which can get cheap electricity and rece the cost price of mining. The price below 30% is the ideal price, which can keep the price of bitcoin falling to a low level, and there is still some income< According to the current mining difficulty of bitcoin:
BTC revenue per ton: 1th / s * 24h = 0.00007087btc
calculated by the comprehensive 12t machine computing power, the daily output is:
0.00007087t * 12t = 0.00085044btc
then the time required for a single machine to dig a BTC:
1 / 0.00085044 = 1175 days
the time required for ten mining machines to dig a BTC:
1 / 0.0085044 = 117 days
100 days In other words, according to the current difficulty, it takes about three years for a single miner to proce a bitcoin, 3.9 months for ten miners to dig a bitcoin, and 11.7 days for a hundred miners to dig a bitcoin. The cost of a single miner is about 8500, Ten are around 85000, one hundred is 850000, less than one million, and one month's income is more than two bitcoins. According to the current price of bitcoin, the price is about 120000. So, although the income of bitcoin mining is not as good as before, it is still considerable compared with other investment projects
however, these benefits do not include decting the cost of electricity charges and later maintenance of machines, so the premise of mining is to find a mine with low electricity charges. If the quantity is large, we need to find a safe, reliable and stable mine. What's more, we need cheap electricity to lower the cost price.
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
Ethereum uses fog computing. The data processing and applications of fog computing are concentrated in the devices at the edge of the network, rather than almost all stored in the cloud, which is an extension concept of cloud computing, which is more in line with the spirit of decentralization of blockchain. If all the storage and operations still stay on the centralized server, then it will not be a real blockchain
recently, the hot "ethereal cat" on Ethereum network has led to the congestion of Ethereum network. The problem is that the TPS concurrency per second of Ethereum is too low. The emergence of ethereumfog with fog computing will break the embarrassing situation of Ethereum network congestion, and add powerful decentralized storage and additional computing power to the chain
the concept of fog computing may be unfamiliar to many chain friends, but it is the most important aspect of ether fog to attract investors. In fact, I have heard about the concept of fog computing for a long time, and I have always thought that fog computing is the future development direction. When it comes to fog computing, we should start with cloud computing. In fact, the cloud computing we see now evolves from the cluster of independent servers, that is, from the original centralized independent servers to large server clusters, but in the final analysis, it is still a form of centralized computing. Compared with cloud computing, which is the evolution of centralized computing, fog computing is to share computing tasks with various computing power devices around us, and realize the evolution of decentralized and distributed computing, which coincides with the philosophy of blockchain itself.
when building bitcoin, Nakamoto wants bitcoin to be a decentralized currency, not only for use and trading, but also for mining. But it backfired. With the increasing value of cryptocurrency such as bitcoin, mining has become an instry. The competition is more and more fierce, and the pursuit of mining computing power is higher and higher. Therefore, from ordinary computer mining, ASIC mining machine and GPU mining machine have evolved
the algorithm of ASIC mining machine is almost sha256, while the algorithm of GPU mining is different. For example, the algorithm of BTG is equihash, and the algorithm of BCD is optimized x13. Although it is not absolute, it can be simply considered that the currency of sha256 algorithm is generally mined by ASIC mining machine. Other algorithms are basically using GPU miner. There are also exceptions. Scrypt's Leyte coin used to be mined by GPU miner, but later scrypt's algorithm was also conquered by ASIC chips, such as ant miner L3 +, which is the ASIC miner used to dig Leyte coin
ASIC miner refers to the miner that uses ASIC chip as the core of computing power. ASIC is the abbreviation of application specific integrated circuit, which is a kind of electronic circuit (chip) specially designed for a specific purpose. Some mining machinery factories have designed ASIC chips specially for computing the sha256 algorithm of bitcoin, and the mining machinery using them is ASIC mining machinery. Because ASIC chip is only built for specific computing, its efficiency can be much higher than that of CPU. For example, the current mainstream ant miner S9 is ASIC miner, which uses 189 ASIC chips, the computing power reaches 13.5th/s, and the power consumption is only 1350W. As a comparison, the computing power of gtx1080ti, the flagship computer graphics card, will not exceed 60mh / s even if it is optimized well. The difference is tens of thousands of times
GPU miner refers to the miner that uses GPU graphics card as the core of computing power. Cryptocurrencies such as Ethereum, bitcoin and diamond use graphics algorithms, so the speed of computing with graphics card will be the highest. Compared with ASIC miner, GPU miner is more well-known, because it is a computer with enhanced graphics card configurationthe purpose of GPU miner is to make money, so we should pursue the power consumption ratio and maximum profit, so we should pay attention to the cost performance. Generally, the medium and high-end positioning graphics cards, such as AMD rx560 and rx570, have high power consumption ratio, which is a good choice for GPU miner. While flagship cards such as gtx1080ti and AMD vega64 have the strongest single card performance, they are not cost-effective in terms of price and power consumption
in addition, the ASIC miner also has some exotic procts, such as the USB miner of burning cat, which is slightly larger than the U disk, and the power consumption is only 2.25w, which is the smallest bitcoin miner at present
< / blockquote >the above quoted digcoin.com - "Introction to mining machinery classification" has many professional terms. I hope it can help you, thank you
first, smart contracts are so good that they are not useless
smart contracts. As the name suggests, smart contracts refer to contracts that can be executed automatically by computer code; Ethereum virtual machine is used to execute smart contract; Smart account is the carrier that smart contract can be executed. In other words, smart account, this "account" can be controlled by Ethereum virtual machine. According to what control, according to smart contract
there is no free lunch in the world. The smart contract function is so good that it's not useless. When you trade in Ethereum, you have to pay the miner's handling charge. So what's the handling charge you have to pay on Ethereum system, and what's the relationship between
gas and handling charge
2. What's the matter with Ethereum gas
Ethereum gas is similar to automobile fuel. It needs Ethereum gas to drive smart contract. Gas is an English word, Chinese meaning: gas, gasoline, this thing in daily life, is a consumable. Why does Ethereum proce fuel
what is the meaning of gas in Ethereum? In fact, Ethereum's gas is closely related to transaction costs. Ethereum transaction needs service charge. This gas is the calculation mode of service charge of Ethereum
in the setting of Ethereum, the transaction fee is similar to an encrypted fuel, namely gas, which can drive the movement of smart contracts. When Ethereum executes transactions on the blockchain, the fuel will be graally consumed according to the rules of the characteristics
from this point of view, gas is really the same as its original intention, like automobile fuel. If you want to start a car, you must need fuel
What is the difference between the transaction fees of Ethereum gas and bitcoin When it comes to handling charges, you may be familiar with them. There is no free lunch in the world. Both Ethereum and bitcoin need service charge, but the service charge mode of the two is different. Bitcoin is used to pay bitcoin as a transfer fee directly, but Ethereum is not In essence, Ethereum is a virtual machine, which is decentralized and controlled by people all over the world, forming a "world-class computing network". When you send a token, execute a contract, transfer Ethereum, or do other things on the block, the computer needs to calculate when processing the transaction, which consumes network resources. In this way, you have to pay the "gas" to get the computer to work for you and the miners to process the transaction for yougenerally, the higher the gas price the sender is willing to pay, the greater the value the miners get from the transaction, and the more likely the miners are to choose the transaction. In this way, miners are free to choose to trade. In order to set the gas price for the sender as a reference, miners can directly put forward the lowest gas price they need to execute the transaction
How to calculate the gas consumption of Ethereumwhen Ethereum virtual machine processes transactions, Virtual Opportunities process one by one according to the operation instructions determined in the transaction, and each operation instruction has a specified gas consumption
Ethereum system stipulates two accounts: one is normal account and the other is smart account
for ordinary transfer transaction, that is to call "normal account", the required gas is fixed 21000
when calling "smart account", because the complexity of smart contract is different, the required gas is also different. The more resources (computation, memory, etc.) used to process transactions, the more gas will be needed. For example, an addition operation will consume 3gas. If more complex operations are performed, the more gas will be consumed
then you may ask a question: when a user's transaction involves a malicious smart contract, the contract is extremely complex, and the execution of the contract will consume unlimited fuel, what should we do? The solution of Ethereum system is: in order to avoid unlimited gas consumption caused by malicious
smart contract, the user needs to set the maximum allowable fuel consumption when sending the transaction, namely
gaslimit. In this way, even if there is a malicious smart contract, the worst case is only within the fuel consumption range specified by gaslimit
What is the relationship between Ethereum gas and transaction feeson Ethereum, the service charge you pay is equal to gasprice times gasused
you can understand gasprice as the unit price of fuel and gasused as how many liters of fuel the car needs
for a car, if you say 20 yuan per liter of gasoline, 10000 liters of gasoline is 200000 yuan. For Ethereum, each
gas is 20 gigabytes (gigabytes is the unit of quantity of Ethereum currency), and 10000 gas is: 20 times 10000 equals 200000 gigabytes, 20000 gigabytes equals 0.0002 Ethereum, that is to say, the transaction procere is 0.0002 Ethereum
the specific exchange value is shown in the following table:
< p class = "ikqb_ image_ Please click to enter the description of the picture (Note: the basic unit of the quantity of ether coin is "Wei", and the quantity units of ether coin are "Wei", "FeNi" and "Ether", among which "Ether" is used as ordinary transaction“ "Fini" is used as micro trading“ "Saab" and "Wei" are used to carry out contract implementation on cost.) From this we can find that gas is not Ethereum, it is a separate system, its exchange rate and Ethereum into a certain proportion, after the proportion of exchange, the final formation of transaction costs
for specific exchange rate query, you can check the following website:
for details https://jin10086.github.io/etherconVerter/
both gas price and ether price are freely regulated by the market, but they are different in that the price of ether fluctuates according to the market situation, while the price of gas is determined by miners, If the price of fuel falls below the miners' minimum requirements, the miners refuse to process the deal. The separation of gas and Ethereum can protect the system from the possible fluctuation with the rapid change of Ethereum price
generally speaking, most miners will choose to give priority to their interests. When dealing with the transaction, they will arrange according to the gas price from high to low, and give priority to those with high gas price. If you are in a hurry to trade, you need to raise the gas price so that the miners can see you earlier; If you are not in a hurry, you just need to set a gas price, which is above the bottom line of gas price set by miners
How is gas obtainedin fact, gas is the ether coin purchased from the miner. The ether coin in the user's own account can purchase gas from the miner, and the Ethereum client will automatically purchase gas with Ethereum according to the specified maximum transaction expenditure limit
Where did gas go in the endfor each transaction, the initiator of the transaction must set the gas limit and gas price. Different operations will proce different gas costs. When the gas is used up, the miner will stop executing, and the gas used will be used as a reward to the miner. This will involve several situations:
the first situation is that if there is a surplus gas, the miner will stop executing, Then the remaining gas will be returned to the transaction initiator or the creator of the smart contract. For example, if I send an Ethereum to Yiyi, the gas limit I set is 50000, and the gas normally consumed is 21000, then the remaining 29000 that has not been consumed will be returned to me
in the second case, if the gas limit I set is too low, or the Ethereum in my account is not enough to pay for my gas consumption, then the transaction will be cancelled e to insufficient gas, and the gas used for calculation will not be returned to my account
in the third case, if the transaction fails, I have to pay the handling charge for the occupied computing resources
How to set a reasonable gas pricebefore each transaction, you can query this website to confirm the gas price to be set: https://ethGasstation.info/ To sum up, in this article, we mainly introce the gas and service charge of Ethereum: gas is equivalent to fuel oil. When you process transactions on Ethereum virtual machine, you will consume computing resources, that is, gas. On Ethereum, the service charge you pay is equal to gasprice multiplied by gasused, that is, the unit price of gas multiplied by the total amount of gas consumed. The complexity of the operation is different, and the cost of gas is also different. When the gas is used up, the miner will stop executing, and the gas used will be used as a reward to the miner. The miner will give priority to the trader with higher gas price
bitcoin is a virtual currency
the risk is too high
it's easy to ruin your family.