-
Notifications
You must be signed in to change notification settings - Fork 0
Description
https://docs.soliditylang.org/en/v0.8.13/
Gas - one of the most important concepts to understand is gas. Gas is the price paid per operation to execute code on the blockchain. The Ethereum Virtual Machine is a stack-based bytecocde state machine that is similar in structure to assembly (in fact, it uses assembly under the hood). This means that each operation you want to do (e.g. STORE PUSH, MOVE etc.) costs some amount of Gas.
Here are the opcodes if you are interested: https://ethereum.org/en/developers/docs/evm/opcodes/
Gas is priced by the market so the cost to do something on ETH is always fixed in the amount of GAS it requires but it is variable by the price of gas.
here's a great site for examining gas costs: https://www.blocknative.com/gas-estimator