{"id":"gas","version":1,"language":"en","title":"Gas","hidden":false,"content":"**Gas** is the fee required to successfully conduct a transaction or execute a contract on a [blockchain](https://iq.wiki/wiki/blockchain). The amount of gas required for a transaction depends on its complexity. Gas is paid in the native [cryptocurrency](https://iq.wiki/wiki/cryptocurrency) of the network, such as [Ether (ETH](https://iq.wiki/wiki/ether-eth)) on the [Ethereum](https://iq.wiki/wiki/ethereum) network. [\\[1\\]](#cite-id-rctmkj3o9vo)  \n$$widget0 [YOUTUBE@VID](Yh8cHUB-KoU)$$  \n  \n# Overview  \n  \nGas is the [transaction fee](https://iq.wiki/wiki/transaction-fee) that users pay to miners on a [blockchain](https://iq.wiki/wiki/blockchain) protocol to have their transaction included in the [block](https://iq.wiki/wiki/block). The gas price is determined by supply and demand and can fluctuate depending on network congestion. If there is more demand for transactions, miners can choose to include the transactions that pay more, thereby compelling users to pay more to have their transactions processed quickly and efficiently.  \n  \nGas fees are specific to smart contract blockchains. Ethereum was the first blockchain to use [smart contracts](https://iq.wiki/wiki/smart-contract) and the first to introduce the practice of gas fees. Nowadays, many competing layer-1 blockchains like [Solana](https://iq.wiki/wiki/solana), [Avalanche](https://iq.wiki/wiki/avalanche), and [Polkadot](https://iq.wiki/wiki/polkadot) charge gas fees to use their networks.[\\[6\\]](#cite-id-a1wv0vnh39) A gas fee of the Ethereum network is priced in tiny fractions of the [ether (ETH)](https://iq.wiki/wiki/ether-eth) denominations called [gwei](https://iq.wiki/wiki/gwei). If the network is very busy and miners are struggling to keep up, gas prices rise. If the network is experiencing a slower period with excess mining capacity, prices drop.[\\[1\\]](#cite-id-rctmkj3o9vo)[\\[3\\]](#cite-id-qh0n0zpw5oo)[\\[4\\]](#cite-id-nwyrcenthxm)  \n  \n## Ethereum Gas Fees  \n  \nEthereum has two validation systems, [Proof of Work (PoW)](https://iq.wiki/wiki/proof-of-work-pow) and [Proof of Stake (PoS)](https://iq.wiki/wiki/proof-of-stake). Each validates transactions in different ways. PoW uses crypto miners to approve transactions, and PoS uses Ethereum staked by investors. In both cases, gas fees are paid in exchange for validating transactions.[\\[5\\]](#cite-id-pe6n4bpd9hi) Gas fees are typically measured in [gwei](https://iq.wiki/wiki/gwei) and one [gwei](https://iq.wiki/wiki/gwei) is equal to 0.000000001 ETH.[\\[2\\]](#cite-id-mzfbkepi3b)  \n$$widget0 [YOUTUBE@VID](Yh8cHUB-KoU)$$  \n  \n### ETH Gas Fee Calculation  \n  \n[Ethereum](https://iq.wiki/wiki/ethereum) is the largest smart contract blockchain, and after the London upgrade of 2021, the formula to calculate Ethereum crypto fees is as follows:  \n  \n* Gas fee = Gas limit \\* (base fee + optional tip)  \n  \nHere, the \"gas limit\" is the maximum gas used on the [blockchain](https://iq.wiki/wiki/blockchain) for a transaction measured in \"units.\" By default, the [Ethereum](https://iq.wiki/wiki/ethereum) blockchain sets the gas limit to 21,000 units. The \"base fee\" is the minimum amount of ETH needed to be paid to send a transaction on the blockchain. These fees are measured in gwei, with one [gwei](https://iq.wiki/wiki/gwei) equaling 0.000000001 ETH. Ethereum's base fee will increase or decrease depending on network activity. \"Optional fee\" is a discretionary fee that users can add on top of the base fee to encourage miners to prioritize some particular transactions over others.[\\[6\\]](#cite-id-a1wv0vnh39)   \n  \nHowever, the high cost of gas can be a barrier to entry for some users. There are a number of ways to reduce the amount of gas required for a transaction, such as using a less complex transaction or optimizing the code of the smart contract. There are also a number of projects, such as [Polygon](https://iq.wiki/wiki/polygon), [Arbitrum](https://iq.wiki/wiki/arbitrum), [Loopring](https://iq.wiki/wiki/loopring), etc., working on ways to reduce the overall gas consumption of the Ethereum network.   \n$$widget0 [YOUTUBE@VID](hQ78FVSv-vs)$$","summary":"Gas is the transaction fee paid to miners on blockchain protocols, necessary for executing contracts and transactions, usually charged in the network's native cryptocurrency.","categories":[{"id":"exchanges","title":"Exchanges"}],"promoted":0,"tags":[{"id":"Glossary"}],"metadata":[{"id":"references","value":"[{\"id\":\"rctmkj3o9vo\",\"url\":\"https://www.investopedia.com/terms/g/gas-ethereum.asp\",\"description\":\"Definition\",\"timestamp\":1692919857675},{\"id\":\"mzfbkepi3b\",\"url\":\"https://hackernoon.com/ethereum-gas-fees-for-dummies-oj8135nn\",\"description\":\"What is Gas\",\"timestamp\":1692920072964},{\"id\":\"qh0n0zpw5oo\",\"url\":\"https://www.coindesk.com/learn/what-are-ethereum-gas-fees/\",\"description\":\" Ethereum Gas Fees\",\"timestamp\":1692921289704},{\"id\":\"nwyrcenthxm\",\"url\":\"https://www.thebalancemoney.com/gas-ethereum-5189030\",\"description\":\"Ether\",\"timestamp\":1692921370897},{\"id\":\"pe6n4bpd9hi\",\"url\":\"https://cryptopythia.com/gas-in-crypto/\",\"description\":\"Gas in Crypto\",\"timestamp\":1692971560244},{\"id\":\"a1wv0vnh39\",\"url\":\"https://worldcoin.org/articles/crypto-gas-fees\",\"description\":\"Crypto Gas Fee\",\"timestamp\":1692976921541},{\"id\":\"bxbtkhumo3i\",\"url\":\"https://www.bitcoininsider.org/article/212159/ethereum-gas-fees-how-they-work-how-pay-less\",\"description\":\"How to calculate gas fee\",\"timestamp\":1692979189163}]"},{"id":"previous_cid","value":"QmWgUanSM1VLcp7mw6nbpNB7LQ5GXKL55WiaeKC7ZcdDh3"}],"user":{"id":"0x6753061a4cffbc0A617e57E956A298D88702a94B"},"author":{"id":"0x6BDfFD701FaAF21A84a766E9e52695AE8faC1A94","profile":{"username":"FEROZ","avatar":""}},"media":[{"name":"h3rP3Ptvka4","id":"https://www.youtube.com/watch?v=h3rP3Ptvka4","size":"0","type":null,"source":"YOUTUBE"},{"name":"Yh8cHUB-KoU","id":"https://www.youtube.com/watch?v=Yh8cHUB-KoU","size":"0","type":null,"source":"YOUTUBE"},{"name":"hQ78FVSv-vs","size":0,"id":"https://www.youtube.com/watch?v=hQ78FVSv-vs","source":"YOUTUBE"}],"views":14,"events":[],"ipfs":"QmWgUanSM1VLcp7mw6nbpNB7LQ5GXKL55WiaeKC7ZcdDh3","transactionHash":"0xe29981d5a862c7eca639b5173681313ae6791c5894da273c1eb4d73d804aa5e1","created":"2023-08-25T16:47:52.996Z","updated":"2023-08-26T17:34:55.987Z","linkedWikis":null,"images":[{"id":"QmREry1t3PrRioUPF18xFcvkACvH8xf8sx1K5uF34z1hXj","type":"image/jpeg, image/png"}]}