Ethereum GAS
  • Gas measures how much work a transaction's code dose.
  • Any transaction that modifies the Blockchain in any way costs gas. Any basic operation or data storage costs gas.
  • The user that generates the transaction pays for the gas.
Ethereum GAS PRICE
  • gasPrice is the amount of wei the transaction sender wants to pay per unit of gas to get the transaction mined(processed).
  • gasPrice is set by the user (Contract Owner).
  • The gas from all the transaction in the block will be received by the miner that validates the block.
  • The higher the gasPrice, the faster the transition will mined.
Ethereum GAS LIMIT
  • As a developer, you don't want to blindly execute a transaction and realize your transaction took hundreds of dollars worth of Ether.
  • To avoid this situation, you can specify a gasLimit, which indicates the maximum amount of gas you are willing to buy to execute your transaction.
  • This also helps to avoid denial-of-service (DoS) attacks by setting the max no. of computational steps.
  • Ethereum has a block gas limit rather then block size limit.
  • Ethereum VM (EVM) Opcodes and Instruction : https://github.com/crytic/evm-opcodes
Video : Basics
Question / Answer

Vitaly Dmitrievich Buterin, better known as Vitalik Buterin, is a Russian-Canadian computer programmer, and co-founder of Ethereum. Buterin became involved with cryptocurrency early in its inception, co-founding Bitcoin Magazine in 2011.
Bibliography/References
  • None