---
title: "什麼是 EIP-1559？"
description: "用途與存取方式"
---

# 什麼是 EIP-1559？

區塊鏈並非完美無缺。隨著交易數量與使用者不斷成長，網路會出現新的需求需要處理。這些改進可能包括讓網路更具韌性、更安全，或提供更好的使用者與社群體驗的變更。

為了改進 Ethereum 協議，使用者可以提出稱為 [Ethereum Improvement Proposals（EIP）](https://eips.ethereum.org/) 的提案。讓我們先了解 EIP 是什麼，接著再深入探討 EIP-1559。

## **Ethereum improvement proposal 的三種類別是什麼？**

EIP 是針對 [Ethereum 生態系](https://www.alchemy.com/dapps/ecosystem/ethereum)特定面向的流程或設計提出的改進提案。EIP 可分為三種不同的提案類別：

- **Standards**
- Meta
- Informational

我們會看到這三種類別各有不同用途。其中 Standards Track 是用於會變更 Ethereum 大部分實作的 EIP。我們稍後會更詳細討論的 EIP-1559，就是一個 Standards Track EIP 的例子。

## **Standards track**

Standards Track 中有 4 種不同的 EIP 分類：

### 核心變更

Core 改進是對 Ethereum 協議核心功能的變更。這類變更需要透過共識分叉（consensus fork）才能實作。例如 [EIP-2929](https://eips.ethereum.org/EIPS/eip-2929)，這項提案提高了一系列 [opcode](https://www.alchemy.com/overviews/what-is-the-ethereum-virtual-machine-evm#evm-4) 的 gas 成本。

### **對網路互動的變更**

Networking 改進是指對網路互動的任何變更，例如交易驗證與共識機制。[EIP-2124](https://eips.ethereum.org/EIPS/eip-2124) 就是一個 networking EIP 的例子。這項提案透過建立「fork identifier」來改善節點彼此識別的方式，縮短節點找到運作在同一分叉上的其他節點所需的時間。

### 介面變更

Interface EIP 涵蓋與客戶端互動時規格上的任何改進。屬於此分類的重要 EIP 是 [EIP-2700](https://eips.ethereum.org/EIPS/eip-2700)。這項 EIP 建立了一個 Javascript event emitter 物件，用來通知 Javascript 應用程式鏈上發生的任何狀態變更。

### ERC 提出應用層標準

Ethereum Request for Comments（ERC）EIP 是針對應用層標準與慣例改進所提出的提案。[EIP-3156](https://eips.ethereum.org/EIPS/eip-3156) 這項 ERC EIP，是為了在 Ethereum 上建立單一資產閃電貸款（flash loan）的標準而制定。在這項 EIP 實作之前，市面上存在多種不同的閃電貸款標準。此 EIP 的目標是透過建立單一標準，為使用者提供簡便性並降低技術債。

## **Meta 與 informational track**

EIP 還有另外兩種類別：**Meta** 與 **Informational**：

### **Meta 變更流程**

這類 EIP 記錄某項流程的變更。它們與 Standards Track 上的 EIP 不同，因為不需要對 Ethereum 程式碼庫做任何變更。

### Informational 變更指引

Informational EIP 不會對 Ethereum 提出任何新功能，而是為 Ethereum 社群提供指引與資訊。例如 [EIP-2228](https://eips.ethereum.org/EIPS/eip-2228)，它將 Ethereum「Mainnet」的命名正式定為專有名詞。這是為了避免混淆，因為過去有作者以不同方式書寫，例如「main net」或「mainnet」。

## **提案流程如何運作？**

任何社群成員都可以提出 EIP。方式是將提案提交至 [EIP Github repository](https://github.com/ethereum/EIPs)。該儲存庫中記載了提交所需遵循的標準格式與流程。

EIP 提交後，會經歷以下流程：

1）**Draft** - 這是一個開放中的 EIP，仍可進行編輯與修改。社群成員可以向作者提供意見回饋，並[討論該 EIP 所要實作的變更](https://ethereum-magicians.org/t/eip-1559-fee-market-change-for-eth-1-0-chain/2783)。

2）**Last Call** - 此階段代表 EIP 已準備好接受委員會審查。審查是由一組編輯團隊執行，成員包括 Ethereum foundation 與社群成員。

3）**Final** - 對於非 Core 提案，技術變更會被實作。對於 Core 提案，Ethereum Core Devs 會送出核准，並計劃在未來的硬分叉中實作該變更。

4）**Deferred** - Deferred 提案已經過審查，並決定延後至未來再重新考慮。

<ImageBlock
  src="https://media.alchemy.com/1703778550-eip-process.jpeg"
  alt="EIP process Sourcehttps://blog.bitnovo.com/en/what-is-ethereum-improvements-proposals-eip/"
  width={768}
  height={526}
  caption="EIP process Sourcehttps://blog.bitnovo.com/en/what-is-ethereum-improvements-proposals-eip/"
/>

有了 EIP 的背景知識後，接下來讓我們更詳細地看看 EIP-1559。

## **EIP-1559 提案是什麼？**

[EIP-1559](https://eips.ethereum.org/EIPS/eip-1559) 是一項針對 gas fee 結構以及礦工獎勵方式進行變更的提案。此提案於 2021 年 8 月 5 日，作為 Ethereum London Hard Fork 的一部分實作上線。

<EmbeddedTable
  table={{
    columns: [
      { key: "1", width: 200, title: "Field", dataType: "object" },
      { key: "2", width: 200, title: "Value", dataType: "object" },
    ],
    data: [
      {
        "1": { title: "<p>Author</p>", tooltip: "", icon: "" },
        "2": { title: "<p>Vitalik Buterin, Eric Conner, Rick Dudley, Matthew Slipper, Ian Norden, Abdelhamid Bakhta</p>", tooltip: "", icon: "" },
        id: 0,
      },
      {
        "1": { title: "<p>Discussions-To</p>", tooltip: "", icon: "" },
        "2": { title: "<p><a href='https://ethereum-magicians.org/t/eip-1559-fee-market-change-for-eth-1-0-chain/2783'>https://ethereum-magicians.org/t/eip-1559-fee-market-change-for-eth-1-0-chain/2783</a></p>", tooltip: "", icon: "" },
        id: 1,
      },
      {
        "1": { title: "<p>Status</p>", tooltip: "", icon: "" },
        "2": { title: "<p>Final</p>", tooltip: "", icon: "" },
        id: 2,
      },
      {
        "1": { title: "<p>Type</p>", tooltip: "", icon: "" },
        "2": { title: "<p>Standards Track</p>", tooltip: "", icon: "" },
        id: 3,
      },
      {
        "1": { title: "<p>Category</p>", tooltip: "", icon: "" },
        "2": { title: "<p>Core</p>", tooltip: "", icon: "" },
        id: 4,
      },
      {
        "1": { title: "<p>Created</p>", tooltip: "", icon: "" },
        "2": { title: "<p>2019-04-13</p>", tooltip: "", icon: "" },
        id: 5,
      },
      {
        "1": { title: "<p>Requires</p>", tooltip: "", icon: "" },
        "2": { title: "<p>2718, 2930</p>", tooltip: "", icon: "" },
        id: 6,
      },
    ],
  }}
/>

### **問題**

Ethereum 面臨的主要挑戰之一，是要提供一個可擴展的網路，讓交易成本不至於過高而使使用者因負擔不起而被排除在外。由於 Ethereum 日益普及，隨著流量增加，網路變得高度壅塞。

這種壅塞造成了一種「競價戰」，使用者必須爭相出價，讓礦工願意以第一價格拍賣模式將其交易納入區塊。出價最高者的交易會被礦工優先處理，因為他們提供的獎勵最高，而其他交易則被留在 [mempool](https://www.alchemy.com/overviews/what-is-a-mempool) 中等待處理。

### **解決方案**

EIP-1559 的目標是透過設定[交易的 base fee](https://www.alchemy.com/docs/how-to-send-transactions-on-ethereum)，並增加容納這些交易的區塊大小，來改善網路的流量狀況。增加區塊大小可以容納更多交易，進而降低使用者之間的財務競爭。

### **Base fee 的變更**

有了交易的 base fee 之後，London Fork 之前存在的競價優先做法被取消了。Base fee 是礦工要將某筆交易納入[下一個區塊](https://www.alchemy.com/docs/web3-glossary)所需支付的金額。

這個 base fee 會根據區塊的容量隨時間變動，變動幅度為 12.5%。如果區塊使用率超過 50%，base fee 會增加 12.5%；如果區塊是空的，則會減少 12.5%。在 50% 容量時，則不會有任何變動。

在 Ethereum 實作 EIP-1559 之後，仍然有辦法讓交易獲得優先處理。做法是使用者為交易加上 priority fee，作為給礦工的小費。使用者可以透過在交易中[設定 max_priority_fee_per_gas](https://www.alchemy.com/docs/how-to-send-transactions-on-ethereum) 來表明自己願意支付的上限。

為了消除礦工將垃圾交易納入區塊（進而推高 base fee）的誘因，EIP 也導入了銷毀機制。銷毀 ETH 是指將 [ETH 傳送到一個](https://www.alchemy.com/web3-wallets-overview)沒有人能存取的錢包中，使其從可流通的 ETH 供給量中移除。

交易的 base fee（根據區塊當前容量決定）會被網路銷毀，只有 priority fee 會分配給礦工。在 EIP-1559 之前，礦工會拿到整筆交易費用。

### **結果**

雖然這並非直接的目標，但 EIP-1559 實作後，使用者在 gas 費用上有所節省，因為這讓他們更容易[估算 gas fee](https://www.alchemy.com/docs/how-to-send-transactions-on-ethereum)。與 EIP-1559 實作前相比，交易的確認時間也有所縮短。每日交易所銷毀的 ETH 數量[正在被追蹤](https://watchtheburn.com/)。透過觀察這些資料，社群可以了解 EIP-1559 對礦工獎勵、base fee 以及每個區塊總交易量所產生的影響。

<EmbeddedTable
  table={{
    columns: [
      { key: "1", width: 120, title: "BLOCK", dataType: "object" },
      { key: "2", width: 150, title: "BURNED", dataType: "object" },
      { key: "3", width: 120, title: "TIPS", dataType: "object" },
      { key: "4", width: 120, title: "REWARDS", dataType: "object" },
      { key: "5", width: 120, title: "BASE FEE", dataType: "object" },
      { key: "6", width: 140, title: "PRIORITY FEE", dataType: "object" },
      { key: "7", width: 150, title: "GAS USED", dataType: "object" },
      { key: "8", width: 100, title: "TXN", dataType: "object" },
      { key: "9", width: 120, title: "AGE", dataType: "object" },
    ],
    data: [
      {
        "1": { title: "<p>14696917</p>", tooltip: "", icon: "" },
        "2": { title: "<p>0.5615 ETH</p>", tooltip: "", icon: "" },
        "3": { title: "<p>0.0354 ETH</p>", tooltip: "", icon: "" },
        "4": { title: "<p>2 ETH</p>", tooltip: "", icon: "" },
        "5": { title: "<p>44 GWEI</p>", tooltip: "", icon: "" },
        "6": { title: "<p>1 GWEI</p>", tooltip: "", icon: "" },
        "7": { title: "<p>12,776,101 (85%)</p>", tooltip: "", icon: "" },
        "8": { title: "<p>163 (93%)</p>", tooltip: "", icon: "" },
        "9": { title: "<p>36 sec ago</p>", tooltip: "", icon: "" },
        id: 0,
      },
      {
        "1": { title: "<p>14696916</p>", tooltip: "", icon: "" },
        "2": { title: "<p>1.1706 ETH</p>", tooltip: "", icon: "" },
        "3": { title: "<p>0.1764 ETH</p>", tooltip: "", icon: "" },
        "4": { title: "<p>2 ETH</p>", tooltip: "", icon: "" },
        "5": { title: "<p>39 GWEI</p>", tooltip: "", icon: "" },
        "6": { title: "<p>2 GWEI</p>", tooltip: "", icon: "" },
        "7": { title: "<p>29,962,669 (200%)</p>", tooltip: "", icon: "" },
        "8": { title: "<p>286 (70%)</p>", tooltip: "", icon: "" },
        "9": { title: "<p>53 sec ago</p>", tooltip: "", icon: "" },
        id: 1,
      },
      {
        "1": { title: "<p>14696915</p>", tooltip: "", icon: "" },
        "2": { title: "<p>0.0534 ETH</p>", tooltip: "", icon: "" },
        "3": { title: "<p>0.005 ETH</p>", tooltip: "", icon: "" },
        "4": { title: "<p>2 ETH</p>", tooltip: "", icon: "" },
        "5": { title: "<p>44 GWEI</p>", tooltip: "", icon: "" },
        "6": { title: "<p>4 GWEI</p>", tooltip: "", icon: "" },
        "7": { title: "<p>1,210,288 (8%)</p>", tooltip: "", icon: "" },
        "8": { title: "<p>9 (56%)</p>", tooltip: "", icon: "" },
        "9": { title: "<p>55 sec ago</p>", tooltip: "", icon: "" },
        id: 2,
      },
      {
        "1": { title: "<p>14696914</p>", tooltip: "", icon: "" },
        "2": { title: "<p>0.363 ETH</p>", tooltip: "", icon: "" },
        "3": { title: "<p>0.0828 ETH</p>", tooltip: "", icon: "" },
        "4": { title: "<p>2 ETH</p>", tooltip: "", icon: "" },
        "5": { title: "<p>47 GWEI</p>", tooltip: "", icon: "" },
        "6": { title: "<p>2 GWEI</p>", tooltip: "", icon: "" },
        "7": { title: "<p>7,725,733 (52%)</p>", tooltip: "", icon: "" },
        "8": { title: "<p>88 (65%)</p>", tooltip: "", icon: "" },
        "9": { title: "<p>56 sec ago</p>", tooltip: "", icon: "" },
        id: 3,
      },
      {
        "1": { title: "<p>14696913</p>", tooltip: "", icon: "" },
        "2": { title: "<p>0.3274 ETH</p>", tooltip: "", icon: "" },
        "3": { title: "<p>0.0165 ETH</p>", tooltip: "", icon: "" },
        "4": { title: "<p>2 ETH</p>", tooltip: "", icon: "" },
        "5": { title: "<p>51 GWEI</p>", tooltip: "", icon: "" },
        "6": { title: "<p>2 GWEI</p>", tooltip: "", icon: "" },
        "7": { title: "<p>6,472,229 (43%)</p>", tooltip: "", icon: "" },
        "8": { title: "<p>74 (89%)</p>", tooltip: "", icon: "" },
        "9": { title: "<p>1 min ago</p>", tooltip: "", icon: "" },
        id: 4,
      },
    ],
  }}
/>

## **結論**

EIP 在 Ethereum 作為協議與 Web3 領導者的發展過程中扮演重要角色。讓社群能夠提出提案並影響 Ethereum 的發展方向，帶來了各種規模層面的多元改進。EIP-1559 正是這種機制實際運作的絕佳例子，也展現了 Ethereum 未來的可能性。

想了解如何傳送並重試 EIP-1559 交易，以及如何建置 Gas Fee Estimator，請參閱我們的 [EIP-1559 Resource and Tutorial Hub](https://www.alchemy.com/docs/ethereum-gas#eip-1559)。
