Skip to content

Ethereum Basics #2

@AddressXception

Description

@AddressXception

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions