January 03rd, 2024

What is Gas-Costs Economics on the Blockchain?



Like (0) Comments (1)



1 Comments Add Your Comment


Mansoor Ahmed
2 years ago Selected
The Gas is calculated by how complex the transaction is to be executed. And the reason why we pay in “gas” rather than “Ether” is that in this way the actual $ costs may stay constant even though Ether might get much more valuable. For example, A transaction that interacts with a contract needs 4 million gas to be executed. We offer 2 GWei per gas, which is 2*10^-9 Ether * 4 * 10^6 => 2*4*10^-3 = 0.008 Ether, or at the time of writing, this would cost us around USD5.

During network congestion, the gas price can rise. The miners always take decisions that which transactions to include in the next block and there is no unlimited amount in one block. Basically the reward the miner gets when transactions compete by gas and gas price. If we decide, for some reason, to offer 50 Gwei for the same transaction to speed it up, we’d pay: 50 * 10^-9 Ether * 4 * 10^6 = 4*50*10^-3 = 0.2 Ether or USD140. A big difference, as you can see.
Like (1) Reply

Post a Comment

To leave a comment, please Login or Register