EIPs Explained

EIP-6789 · Stagnant · Interface · 2023-03-27

EIP-6789: Rename gas to mana

A stagnant naming proposal to rename Ethereum's "gas" to "mana" across opcodes, RPC methods and tooling; it changes terminology only, not how fees work.

What problem does it solve?

"Gas" is the unit that measures computation on Ethereum. The name suggests a fuel you buy and burn, but gas is really an ephemeral, non-transferable budget attached to a transaction. Vitalik Buterin floated the name "mana" back in 2015. EIP-6789 revived the idea after the move to Proof-of-Stake, arguing that this was the last realistic moment for such a sweeping rename before further roadmap work.

The proposal changes no mechanics. It is purely about vocabulary.

How it works

The term gas becomes mana everywhere it surfaces:

Today Proposed
GAS opcode MANA
GASPRICE MANAPRICE
GASLIMIT MANALIMIT
gas argument of CALL, CALLCODE, DELEGATECALL, STATICCALL mana
eth_estimateGas eth_estimateMana
eth_gasPrice eth_manaPrice
eth_maxPriorityFeePerGas eth_maxPriorityFeePerMana

Its test cases illustrate the knock-on effects: "out-of-gas" becomes "out-of-mana", Solidity's gasleft() would become manaleft(), Vyper's msg.gas would become msg.mana, and wallets would show a "mana limit".

The stated rationale: mana fits Proof-of-Stake's lower energy use, it is commonly understood as ephemeral and non-transferable, and it is renewable while natural gas is not.

Sample code

What a JSON-RPC call would look like under the proposal (no client implements this):

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

And the hypothetical Solidity syntax from the spec's example:

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

Things to know

  • Status: Stagnant. No client, compiler or wallet has adopted it; gas, gasleft() and eth_estimateGas remain the real names. Do not use the snippets above in production.
  • It is explicitly not backward compatible: every RPC client, compiler, library and piece of documentation would need to change.
  • Opcode byte values and gas costs would be unchanged; only names differ.
  • Fee mechanics, such as the base fee and tip from EIP-1559, are untouched.

#naming #gas #json-rpc #interface #meta

Details

Authors
pcaversaccio (@pcaversaccio)
Status
Stagnant
Type
Standards Track / Interface
Created
2023-03-27

Machine-readable: Markdown · JSON