{"id":3038,"date":"2024-10-22T12:52:49","date_gmt":"2024-10-22T12:52:49","guid":{"rendered":"https:\/\/apex-aiexperts.com\/?p=3038"},"modified":"2024-10-22T12:52:49","modified_gmt":"2024-10-22T12:52:49","slug":"what-is-ether-eth","status":"publish","type":"post","link":"https:\/\/apex-aiexperts.com\/es\/what-is-ether-eth\/","title":{"rendered":"\u00bfQu\u00e9 es el \u00e9ter (ETH)?"},"content":{"rendered":"<p class=\"wp-block-paragraph\"><strong>Ether (ETH)<\/strong>&nbsp;is the built-in currency used in the Ethereum network.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/bpcdn.co\/images\/2022\/04\/11145404\/ether.png\" alt=\"\u00e9ter (ETH)\" class=\"wp-image-222267\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Like bitcoin (BTC), it can be seen as a&nbsp;<strong>digital asset used to store and\/or transfer value<\/strong>&nbsp;on the blockchain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pero&nbsp;<strong>ether\u2019s main use case is to facilitate the&nbsp;<em>computation<\/em>&nbsp;of smart contracts and decentralized applications (dApps) on the Ethereum network<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anyone looking to build software on Ethereum has to pay for the computing power with ether (ETH).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">An Ethereum node has to execute a transaction on the network and isn\u2019t going to do it for free.&nbsp;Without ETH, you simply cannot do anything on Ethereum.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This was done by design to solve one of the biggest issues with a Turing-complete machine:<strong>&nbsp;the halting problem<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While a Turing-complete machine is pretty awesome in that it can process pretty much any conceivable computation you throw at it, it doesn\u2019t know when to stop calculating if you don\u2019t tell it to.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, if an app is programmed to run in an infinite loop, that app will run forever. Such a scenario would cause major problems or even grind the Ethereum network to a halt!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To help disincentivize bad actors from running code with infinite loops or spamming the network with computation-heavy contracts, Ethereum imposes&nbsp;<strong>transaction fees (paid in ETH)<\/strong>&nbsp;in order to run smart contracts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This requirement makes ether a key mechanism in keeping the demand for computational resources on the Ethereum network in check.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s pretty much like gas in a race car. Without gas, the car won\u2019t start. And the bigger the car or harder you push the car to go, the more fuel is needed to maintain speed and reach the finish line.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the gas runs out then the car just stops, just like an application when it runs out of ether.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is gas?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The term \u201cgas\u201d was created to differentiate between the value of ether (ETH) and the computational cost of using Ethereum\u2019s virtual machine (EVM).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/bpcdn.co\/images\/2022\/04\/11150358\/ethereum-gas.png\" alt=\"Ethereum Gas\" class=\"wp-image-222270\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Gas<\/strong>&nbsp;is how the Ethereum network measures the computational effort required to execute transactions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is called gas because similar to how automobiles need gasoline to operate, the Ethereum network needs gas to keep operating.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, sending 1 ETH from Person A to Person B may require 21,000 gas units. More complex transactions, such as minting an NFT, could demand 2,000,000 gas or higher.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This means that&nbsp;<strong>gas itself is not your transaction fee<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Gas is a&nbsp;<strong>unit<\/strong>&nbsp;used to measure the&nbsp;<strong>computational effort<\/strong>&nbsp;necessary to perform specific actions on Ethereum\u2019s blockchain. The transaction fee involves other factors like base fees and priority fees.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Gas is also not ETH.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The price of 1 gas unit rises when Ethereum\u2019s network is busy and falls during off-peak hours.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The amount of \u201cgas\u201d required s determined by the supply of mining capacity and the demand for transactions needed to be processed. Since miners can decline to process transactions if the gas price is too low, the gas price must be high enough to outweigh the cost of the computational power needed to process these transactions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, the price of 1 ETH rises when a lot of people suddenly want NFTs and falls when someone makes a controversial tweet attacking the usefulness of Ethereum.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pero&nbsp;<strong>gas IS priced in ETH.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Gas price&nbsp;<\/strong>is the amount of ETH it takes to pay for&nbsp;<em><strong>one unit of gas.<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If one unit of gas is priced at 0.000000015 ETH, your transaction requiring 21,000 units would need at least 0.000315 ETH to push through.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Whoa. That\u2019s WAY too many decimals and so few ETH!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Others think so too.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enter giga-wei or&nbsp;<strong>gwei<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Gwei&nbsp;<\/strong>represents a fraction of 1 ETH.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Like cents to a dollar,&nbsp;<strong>wei<\/strong>&nbsp;is the smallest denomination of ETH.&nbsp;<strong>Gigawei<\/strong>&nbsp;translates to 1,000,000,000 wei or 0.000000001 ETH.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are other ways to denominate ETH, but g<strong>wei<\/strong>&nbsp;is the more commonly used among ETH users.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the example above, instead of saying that gas price is at 0.000000015 ETH, you can just say that gas price is 15 Gwei.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s \u201c<strong>gwei<\/strong>\u201d more convenient!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How is the gas fee calculated?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Of course, the transaction fee doesn\u2019t just involve gas and gas prices. It also includes the&nbsp;<strong>BASE FEE<\/strong>, which is the price required to put one gas unit on Ethereum\u2019s block.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Base fees are determined by the blocks before it. The base fee can increase by as much as 12.5% per block if the previous block\u2019s transactions used more gas than the target block size allotted for.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But you don\u2019t just pay for the service. You gotta add a tip, too!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Remember that miners receive block rewards no matter what\u2019s inside an Ethereum block.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To incentivize them to compute for&nbsp;<em>su<\/em>&nbsp;transaction and add it to the blockchain, you can add a P<strong>RIORITY FEE (or TIP)<\/strong>&nbsp;per gas unit when you input your transaction details.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And you thought Uber Eats drivers were demanding.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At this point, your minimum transaction fee would look like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>Tx fee = (gas units the transaction requires) x (gas price at least equal to the base fee + tip)<\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">But what if you executed an uncommon transaction that needed way more gas than you thought? You\u2019ll end up paying waaay more than you originally thought!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is why users usually add a gas limit to their input.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In our fuel example, budgeting for a road trip (executing a transaction) would mean thinking about the price of fuel (gas price) as well as the maximum gallons you think the road trip would need (gas limit).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u201c<strong>Gas Limit<\/strong>\u201d is the maximum number of gas units you\u2019re willing to pay to execute your transaction.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using a gas limit ensures that you don\u2019t accidentally spend way more than your budget. You\u2019re protected from a faulty contract code suddenly requiring more gas.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Alternatively, users have the option to set a&nbsp;<strong>MAX FEE LIMIT<\/strong>&nbsp;to tell the network the maximum gwei you\u2019re willing to spend on your transaction.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Don\u2019t be too stingy with your Gas and Max Limits though! Miners will only use enough gas and gwei to run the transaction and refund you the rest.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But if a transaction hits its Gas or Max Limit and \u201cruns out of gas\u201d before it is executed, then the transaction will fail and you will lose the gas the miners had already consumed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That would be\u2026\u201dgwei\u201d too much waste.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Factoring in Gas Limits, our new minimum transaction fee formula would look like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>Tx Fee = (Gas Limit) * (Base fee + Tip)<\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s say that Person A is sending 1 ETH to Person B.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The simple transaction only requires 21,000 gas but a lot of folks are swapping ERC-20 tokens so the current base fee is 300 gwei. Person A decides to tip 20 gwei to ensure that the 2 ETH is transferred.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using the formula above, Person A\u2019s transaction fee is:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(21,000) x (300 + 20) = 6,720,000 gwei or 0.00672 ETH<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s about $18.84 for transferring 1 ETH (~$3,000)!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$18.84 may still be a bit steep for some. Luckily, there are efforts to reduce transaction fees.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Ethereum\u2019s switch to Proof-of-Stake (PoS)<\/strong>&nbsp;consensus algorithm, for example, would reduce the computational requirements per transaction.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A bunch of&nbsp;<strong>Layer 2 scaling solutions<\/strong>&nbsp;also promise to lighten the network load by doing the heavy computation off-chain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Most wallets and platforms can automatically estimate the gas and gas prices for your transactions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But if you want to practice your transaction fee computing skillz, then you\u2019ll definitely want to check out this cheat sheet!<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>Gas<\/td><td>Unit of measurement for the computational effort miners needs to execute your transaction and record it on Ethereum\u2019s blockchain.<\/td><\/tr><tr><td>Block\/Base Fee<\/td><td>The minimum amount of gas required to put the transaction on the latest Ethereum block. Base fees are \u201cburnt\u201d at the end of each transaction.<\/td><\/tr><tr><td>Gwei<\/td><td>Short for gigawei, a name for a fraction of 1 ETH you need to pay for transaction fees.1 Gwei = 0.000000001 ETHEx: If you\u2019re sending 1 ETH and your total transaction fee is 4230000 gwei (0.00423 ETH), you\u2019ll need to send 1.00423 ETH to successfully execute your transaction.<\/td><\/tr><tr><td>Gas Price<\/td><td>The number of gwei you\u2019re willing to pay for one unit of gas.<\/td><\/tr><tr><td>Gas Limit<\/td><td>The maximum number of gas units you\u2019re willing to pay to execute your transaction.You can adjust how much gas you want to spend but setting a gas limit that\u2019s lower than the total gas needed will lead to your transaction \u201closing gas\u201d and failing.Different types of transactions will require a different minimum gas amount to complete.<\/td><\/tr><tr><td>Max fee<\/td><td>The maximum cost (in gwei) you\u2019re willing to spend on your transaction.After the actual fees and tip have been deducted, the remainder of the max fee will be refunded to the transaction sender.Like in gas limits, setting a max fee lower than the actual fee needed will result in a failed transaction.<\/td><\/tr><tr><td>Priority Fee\/Tip<\/td><td>An additional fee you pay to miners to include\/prioritize your transaction on the blockchain.<\/td><\/tr><tr><td>Gas burn<\/td><td>When users pay for their transactions, their base gas fee gets destroyed (permanently removed from circulation) by the protocol.<\/td><\/tr><tr><td>Transaction fee formula<\/td><td>(Gas Limit) x (Base Fee + Tip)<\/td><\/tr><\/tbody><\/table><\/figure>","protected":false},"excerpt":{"rendered":"<p>Ether (ETH)&nbsp;is the built-in currency used in the Ethereum network. Like bitcoin (BTC), it can be seen as a&nbsp;digital asset used to store and\/or transfer value&nbsp;on the blockchain. But&nbsp;ether\u2019s main use case is to facilitate the&nbsp;computation&nbsp;of smart contracts and decentralized applications (dApps) on the Ethereum network. Anyone looking to build software on Ethereum has to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,12],"tags":[],"class_list":["post-3038","post","type-post","status-publish","format-standard","hentry","category-beginners-guide-to-ethereum","category-learn-crypto"],"_links":{"self":[{"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/posts\/3038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/comments?post=3038"}],"version-history":[{"count":1,"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/posts\/3038\/revisions"}],"predecessor-version":[{"id":3039,"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/posts\/3038\/revisions\/3039"}],"wp:attachment":[{"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/media?parent=3038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/categories?post=3038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apex-aiexperts.com\/es\/wp-json\/wp\/v2\/tags?post=3038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}