Original title: " " Zhikuang University Questions and Answers "Ethereum transfer, how to set the miner's fee to save money? 》
Original source: Zhikuang University
Ethereum wallet may be the most frequently used cryptocurrency wallet, especially some time ago The current DeFi liquidity mining boom has caused many users who have never used wallets before to transfer coins to their wallets to provide liquidity.
Now, the upsurge of liquid mining has faded, and the average gas price of the Ethereum network has also returned from the previous highest point of 709 Gwei to the current 50 G wei, but driven by BTC, the price of ETH is still challenging new highs for the year. The price of ETH has risen, and from the perspective of the legal currency standard, the miner's fee required for transfer has become more expensive.
Do you know how much ETH miner fees have been spent on one of your wallet addresses?
The following URL can help you check: https://fees.wtf
For example , To check how much miner fees have been spent on the address "0xD58189F5E858A6F67319E33Fa1107eb7e679989f", you can directly add this "address" to the above URL for query according to the following format: https://fees.wtf/?address=0xD58189F5E858A6F67319E33Fa1107 eb7e679989f< /p>

Through the query, we can know that this wallet address has spent a total of 0.484 ETH in miner fees. According to the current price, the value is $213.92, which is not a small expense.
Then, here comes the question, how to set the miner fee for Ethereum transfer to save money?
Before answering this question, let’s first understand three concepts in the Ethereum network: Gas , Gas Price, Gas Limit.
Ethereum itself is a decentralized virtual machine, which together is equivalent to a world-class computer network. On the Ethereum network, every calculation, every byte of storage, and any operation on the chain (wallet transfer, calling contracts, writing data, etc.) requires the participation of computers on the entire network.
There is no free lunch in the world. The above-mentioned operations need to consume corresponding network resources, so the corresponding fees must be paid to the miners. In the Ethereum network, this fee is called "Gas fee (fuel fee)", and it is more commonly called "miner's fee" and "handling fee". It should be noted here that Gas is not a new token, but a unit of measurement.
For the operations mentioned above, how much Gas each operation step needs to consume is predetermined in the Ethereum system. For example, it takes 3 Gas to perform a Copy operation, and 30 Gas to perform a SHA3 hash. For ordinary transfers, the Ethereum system requires 21,000 Gas to be consumed.

p>
Graph: https://github.com/ethereum/go-ethereum/blob/master/params/protocol_params.go
Gas Price means What matters is how much unit price you are willing to pay per unit of Gas consumed. The unit of Gas Price is usually expressed in Gwei, 1 Gwei = 0.000000001 ETH.
Gas Limit means that you are willing to pay for this operation The upper limit of the amount of Gas paid. By default, the Gas Limit is 21000 Gas. Under normal circumstances, we do not need to adjust the value of the Gas Limit, but when it involves more complex operations, such as "lettering" on the Ethereum blockchain, the upper limit of the Gas Limit must be adjusted, otherwise the work will be over before the work is finished. The amount of Gas has been consumed.

p>
Picture: During the "Love on Qixi Festival, You Are on the Chain" activity of Zhikuang University, the actual amount of Gas consumed by a certain on-chain content is 22632 Gas, so the Gas Limit Adjusted to 42000 Gas in advance.
Why does the Ethereum system set the Gas Limit parameter? On the one hand, it is to prevent some programs with bugs from falling into an infinite loop (it will automatically stop after the amount of Gas is consumed), and on the other hand, it is to prevent a certain operation from exhausting all the ETH on the account.
Understanding these three concepts, let’s take a look at the calculation formula of Ethereum’s miner’s fee: miner Fee = actual consumed Gas amount * Gas Price
Among them, the "actual consumed Gas amount" is less than or equal to the Gas Limit, which is easy understand.
As mentioned above, the amount of Gas consumed by each operation step is stipulated in the Ethereum system, so the "actual amount of Gas consumed" we It cannot be adjusted, what we can adjust is "Gas Price".
Ethereum miners, like Bitcoin miners, are profit-seeking, and whoever gives the highest Gas Price will give priority to package confirmation. Therefore, in the event of a particularly urgent situation that needs to be confirmed immediately, we need to give a higher Gas Price so that the miners can package and confirm for us as soon as possible; while in non-urgent situations, we can lower the Gas Price , to save unnecessary miner fees.
Nowadays, many wallets are very "smart". Through the analysis of the current network congestion, they will tell you the recommended value of Gas Price. Of course, you can also manually adjust the Gas Price yourself, and the wallet will tell you how long it will take to be packaged by the miners after the adjustment.

p>
In addition to the Gas Price value recommended by the wallet, you can also refer to the value given by the Gas Now website:

https: //gasnow.sparkpool.com
As shown in the picture above, at the moment of the screenshot, if you want to be confirmed by miners within 15 seconds (that is, the next block), You can set the Gas Price to 32 Gwei. If you are not in a hurry, you can choose the "slow" mode and set it to 16 Gwei. Under normal circumstances, it is sufficient to select the gas fee recommended by the "Normal" mode.
Finally, let’s summarize today’s content:
1. Miners who transfer funds in Ethereum The gas fee is obtained by multiplying the "actual amount of gas consumed" and the "gas price". The former is predetermined by the system, and the latter can be adjusted by ourselves to reduce unnecessary miner fee expenses.
2. When adjusting "Gas Price", you can refer to the recommended value given by the wallet, or refer to the real-time and more accurate Gas Now URL.
3. In addition, if more complex operations are involved, the value of the Gas Limit needs to be adjusted to prevent the Gas from being consumed before the work is finished.
Original link
Welcome to join the official BlockBeats community:
Telegram Subscription Group: https://t.me/theblockbeats
Telegram Discussion Group: https://t.me/BlockBeats_App
Official Twitter Account: https://twitter.com/BlockBeatsAsia