[Contract] once they get to know and use the relationship between ETH Gas, GasPrice, GasLimit

 

Gas is the basic unit of a transaction fee (unit), similar to gasoline unit "liter", such as a chain transactions may consume 5 Gas petrol, determined by the program running.

 

GasPrice Gas is a unit price, the unit is Gwei (Ethernet Square is the smallest unit of Wei), GasPrice set by the user, its size will determine the speed of the transaction is processed.

This is from a https://ethgasstation.info/ information shows the relationship GasPrice size and speed, it is the real-time changes.

[Contract] once they get to know and use the relationship between ETH Gas, GasPrice, GasLimit

 

Gas GasLimit a limitation on the size of the contract to prevent some bug such as infinite loops and consume all the ETH accounts, Gas consumption exceeds GasLimit, Fair execution failed.

GasLimit set by the user.

 

Transaction costs = program consumes Gas unit * GasPrice set by the user. ( Price conversion between ETH and Gas and Gas Price Chart Ethereum )

 

Link:https://www.cnblogs.com/farwish/p/12528440.html

Guess you like

Origin www.cnblogs.com/farwish/p/12528440.html