Reader small image

You're reading from  Truffle Quick Start Guide

Product typeBook
Published inJun 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781789132540
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Nikhil Bhaskar
Nikhil Bhaskar
author image
Nikhil Bhaskar

Nikhil Bhaskar is the founder and CEO of Ulixir Inca newly founded tech company that builds decentralized and traditional software. He completed B9lab's Ethereum Developer Course, and he is now a certified Ethereum developer. Aside from running Ulixir, he spends his time traveling and eating. He is a bit of a digital nomad; this year, he's lived in five countries and plans to live in six more before the year ends.
Read more about Nikhil Bhaskar

Right arrow

Gas versus gas limit versus gas price

One of the most common concepts to get your head around is the the difference between gas, gas price, and gas limit. Knowing the difference between these different things is crucial. Let's start with gas.

Gas

Every transaction you do costs gas. What's gas? Well, it's the fuel needed to execute a transaction, denominated in Gwei, which is usually equal to 1*10-9 ETH. Recall the smallest denomination of ETH, wei, which is 1*10-18 ETH, that denominates the amount you will be paying for the transaction.

As we've seen before, you can specify a gas amount in a transaction. We've done this before using web3. Recall that in Chapter 6, Testing Your Dapp, we had the following...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Truffle Quick Start Guide
Published in: Jun 2018Publisher: PacktISBN-13: 9781789132540

Author (1)

author image
Nikhil Bhaskar

Nikhil Bhaskar is the founder and CEO of Ulixir Inca newly founded tech company that builds decentralized and traditional software. He completed B9lab's Ethereum Developer Course, and he is now a certified Ethereum developer. Aside from running Ulixir, he spends his time traveling and eating. He is a bit of a digital nomad; this year, he's lived in five countries and plans to live in six more before the year ends.
Read more about Nikhil Bhaskar