What is Ethereum Gas? [The Most Comprehensive Step-By-Step Guide Ever!] - Deepstash

Bite‑sized knowledge

to upgrade

your career

Ideas from books, articles & podcasts.

published 9 ideas

What is Ethereum Gas? [The Most Comprehensive Step-By-Step Guide Ever!]

blockgeeks.com

From Bitcoin to Smart Contracts

Bitcoin created a decentralized monetary system which can transfer money from one person to another. That only allowed for monetary transactions, there was no way to add conditions to those transactions: 

Alice can send Bob 5 BTC, but she couldn’t tell Bob that he ...

2

STASHED IN:

47

Ether is made of a blockchain (an immutable database) and a world decentralised computer (EVM), a virtual machine in which all the smart contracts function in Ethereum. 

The EVM is a simple yet powerful Turing Complete 256-bit virtual machine. Turing Complete means that given t...

STASHED IN:

35

The attributes of a Smart Contract

A smart contract functionality needs to be 3 things: 

Deterministic: it gives the same output to a given input every single time.

Terminable: contracts by definition, must be capable of termination in a given time limit.

Isolated: ...

1

STASHED IN:

36

Gas is a unit that measures the amount of computational effort that it will take to execute certain operations. Each and every line of code in an Ethereum smart contract requires a certain amount of gas to be executed.

Suppose you are going on a road trip:

    1

    STASHED IN:

    35

    Incentivization. Like any proof-of-work peer-to-peer system, Ethereum is heavily dependent on the computational power of its miners. More miners, more computational power, more secure and fast the system.

    To attract more miners Ether needs to make the system as profitable a...

    STASHED IN:

    34

    If bitcoin is digital gold, Ethereum is alike the power grid, powering an ecosystem of worldwide decentralized applications

    The gas is the metering system for the consumed power. And ETH is the currency used to pay for running the software and maintaining the network...

    STASHED IN:

    35

    To get an operation done in Ethereum, the sender of the transaction must specify a gas limit before they submit it to the network & a gas price: 

    • The gas limit is the maximum amount of gas the sender is willing to pay for this transaction. If an operation has ...

    STASHED IN:

    35

    If an operation runs out of gas, then it is reverted back to its original state like nothing actually happened, however, the operation generator must STILL pay the miners the fee for their computational costs and the operation gets added to the blockchain (even if it has not been...

    STASHED IN:

    34

    When two numbers are added a million times in Ethereum it costs ~$26.55 in fees. On Amazon AWS system it costs $0.000000066.

    This means that computation in Ethereum is 400 million times more expensive!

    However:

    • A well-written contract would likely move such...

    STASHED IN:

    35

    0 Comments

    Discover and save more ideas by creating a

    FREE

    Deepstash account.

    Develop a

    reading habit

    , save

    time

    and create an amazing

    knowledge library

    .

    GET THE APP:

    MORE LIKE THIS

    People who are new to cryptocurrency often confuse the term "token" and "coin". This guide defines the two terms and provides some examples for a better understanding.

    7 IDEAS

    This article explains the basics of NFTs and then explores how to create an NFT using two of the most popular marketplaces. It is meant to be a brief guide to help you get started.

    8 IDEAS