---
eip: 6789
label: EIP-6789
title: Rename gas to mana
status: Stagnant
type: Standards Track
category: Interface
created: 2023-03-27
official: https://eips.ethereum.org/EIPS/eip-6789
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-6789.md
canonical: https://eips.huatuo.xyz/zh/eip-6789/
lang: zh
tldr: "一项处于停滞（Stagnant）状态的命名提案：在操作码、RPC 方法和工具中把以太坊的\"gas\"改名为\"mana\"；它只改术语，不改变手续费的运作方式。"
tags: [naming, gas, json-rpc, interface, meta]
---

# EIP-6789: Rename gas to mana

> This EIP suggests renaming gas to mana, as proposed by Vitalik Buterin in 2015

**TL;DR:** 一项处于停滞（Stagnant）状态的命名提案：在操作码、RPC 方法和工具中把以太坊的"gas"改名为"mana"；它只改术语，不改变手续费的运作方式。

## 它解决什么问题？

"Gas"是以太坊上衡量计算量的单位。这个名字让人联想到可以购买并燃烧的燃料，但 gas 实际上是附属于交易的、短暂且不可转让的预算。Vitalik Buterin 早在 2015 年就提出过"mana"这个名字。EIP-6789 在转向权益证明（Proof-of-Stake）之后重提这一想法，认为这是在后续路线图工作之前进行如此大规模改名的最后一个现实时机。

该提案不改变任何机制，纯粹是词汇层面的调整。

## 它如何运作

`gas` 一词在所有出现的地方都改为 `mana`：

| 现状 | 提议 |
| --- | --- |
| `GAS` 操作码 | `MANA` |
| `GASPRICE` | `MANAPRICE` |
| `GASLIMIT` | `MANALIMIT` |
| `CALL`、`CALLCODE`、`DELEGATECALL`、`STATICCALL` 的 `gas` 参数 | `mana` |
| `eth_estimateGas` | `eth_estimateMana` |
| `eth_gasPrice` | `eth_manaPrice` |
| `eth_maxPriorityFeePerGas` | `eth_maxPriorityFeePerMana` |

其测试用例展示了连带影响："out-of-gas"变成"out-of-mana"，Solidity 的 `gasleft()` 将变成 `manaleft()`，Vyper 的 `msg.gas` 将变成 `msg.mana`，钱包会显示"mana limit"。

提案给出的理由是：mana 契合权益证明较低的能耗，通常被理解为短暂且不可转让，而且它是可再生的，天然气则不是。

## 示例代码

按照该提案，JSON-RPC 调用会是这样（没有任何客户端实现它）：

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_estimateMana",
  "params": [{ "from": "0x...", "to": "0x...", "data": "0x..." }]
}
```

以及规范示例中假想的 Solidity 语法：

```solidity
uint256 startMana = manaleft();      // today: gasleft()
string memory s = string.concat("Hi Mom, ", "miss you.");
uint256 manaUsed = startMana - manaleft();
```

## 需要注意

- **状态：Stagnant。** 没有任何客户端、编译器或钱包采用它；真实的名称仍然是 `gas`、`gasleft()` 和 `eth_estimateGas`。请勿在生产环境中使用上面的代码片段。
- 它明确不向后兼容：每个 RPC 客户端、编译器、库和文档都需要修改。
- 操作码的字节值和 gas 成本不变，只有名称不同。
- 手续费机制，例如 [EIP-1559](/eip-1559/) 中的基础费用和小费，不受影响。


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-6789
