<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Eip-1559 on Website of SauceWu</title><link>https://saucewu.github.io/tags/eip-1559/</link><description>Recent content in Eip-1559 on Website of SauceWu</description><generator>Hugo -- gohugo.io</generator><language>zh</language><lastBuildDate>Sat, 21 Jan 2023 14:00:00 +0900</lastBuildDate><atom:link href="https://saucewu.github.io/tags/eip-1559/index.xml" rel="self" type="application/rss+xml"/><item><title>EIP-1559 手续费机制详解</title><link>https://saucewu.github.io/posts/eip-1559-%E6%89%8B%E7%BB%AD%E8%B4%B9%E6%9C%BA%E5%88%B6%E8%AF%A6%E8%A7%A3/</link><pubDate>Sat, 21 Jan 2023 14:00:00 +0900</pubDate><guid>https://saucewu.github.io/posts/eip-1559-%E6%89%8B%E7%BB%AD%E8%B4%B9%E6%9C%BA%E5%88%B6%E8%AF%A6%E8%A7%A3/</guid><description>&lt;h1 id="eip-1559-手续费机制详解"&gt;EIP-1559 手续费机制详解&lt;/h1&gt;
&lt;p&gt;EIP-1559 是 2021 年 8 月以太坊 London 升级引入的手续费改革，它彻底改变了 Gas 的定价方式。如果你在做钱包或交易所，发交易时不理解这套机制，要么手续费估高了用户体验差，要么估低了交易迟迟不上链。&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="老机制的问题"&gt;老机制的问题&lt;/h2&gt;
&lt;p&gt;EIP-1559 之前，以太坊用的是&lt;strong&gt;一价拍卖（First Price Auction）&lt;/strong&gt;：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;用户自己出一个 &lt;code&gt;gasPrice&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;矿工优先打包出价最高的交易&lt;/li&gt;
&lt;li&gt;网络拥堵时用户只能盲猜出多少合适&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;结果就是：拥堵时大家拼命加价，但实际上很多人出了远超必要的手续费，钱白白浪费。&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="eip-1559-的核心变化"&gt;EIP-1559 的核心变化&lt;/h2&gt;
&lt;p&gt;EIP-1559 把手续费拆成两部分：&lt;/p&gt;</description></item></channel></rss>