Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 903 Bytes

GAS.md

File metadata and controls

43 lines (30 loc) · 903 Bytes
title author date extensions styles
Web3 course
F.Borowiec
2022-01-12
qrcode
image_ueberzug
style table
paraiso-dark
column_spacing header_divider
3
-

GAS

What is gas?

Its the cost, in ethers, for the transaction. The typical measurement for gas is gwei. gwei is 10^9 wei. In other words, its giga weis.

  • wei is the fundamental unit of ether. Its like our cents.
  • gwei = 10^9 wei
  • ether = 10^18 wei

How does gas price work?

Operations costs

That was in gas, but how much does gas cost?

Gas station

To understand you need to understand two things.

  • what a virtual machine is
  • The current cost of gas. Opcode and its associated prices.

What is a virtual machine.

gas-cost * gas-used * 10^9 * eth-cost / 10^18 // Or simplified as gas-cost * gas-used * eth-cost / 10^9