Gas, Ether and Wei explanation

in #ethereum6 years ago (edited)

Imagine a taxi driver and 2 riders, that have to go to the downtown to buy some stuff to make a dinner (smart contract). Each one of them wants to go in different places - bakery, grocery shop, butchery (transactions) etc. so we cant really estimate amount of kilometers that every Rider will ride.

Rider A offers a higher price (gasPrice) per km (1GAS) than Rider B. Taxi driver will choose Rider A, even if the distance (nGAS) will be shorter, because driver is sure
that just after he will find another ride.

Every Rider has a limited amount of money (gasLimit) in wallet to spend for this ride, and if he runs out of money, he will
be thrown out of the car and he will return home and wont be able to prepare a dinner. So money will be lost.
GAS * gasPrice [wei] = totalPrice [wei], where GAS < gasLimit, totalPrice in wei is a fraction of ether

Sort:  

Great post @spontando thanks for joining the Steemit Platform post enjoy and explore thanks.@garrettwallace

Congratulations @spontando! You have received a personal award!

1 Year on Steemit
Click on the badge to view your Board of Honor.

Do not miss the last post from @steemitboard:

SteemitBoard Ranking update - Steem Power, Followers and Following added

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @spontando! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.20
TRX 0.12
JST 0.029
BTC 61533.72
ETH 3447.25
USDT 1.00
SBD 2.51