EIP-3014 The eth_symbol lookup method (eth_symbol JSON-RPC method)

No call decision · Networking & nodes · EIP status Stagnant · created 2020-09-30

Adds an eth_symbol method to JSON-RPC so a wallet can directly ask a node for the native coin symbol (e.g. ETH) of the network it is connected to.

Why it is needed

Wallets that handle multiple networks at once need to know basic information such as each chain's native coin symbol. Currently, users must either look up and enter the symbol themselves or rely on an external list such as ethereum-lists/chains. ERC-20 tokens can be queried directly for their symbol via the symbol() function, but there is no equivalent standard lookup method for a network's native coin. This information is actually known to the node itself, yet it is not exposed via RPC, leaving wallets unable to handle it automatically.

What changes

Today

After EIP-3014

Who is affected

In depth

Method specification

eth_symbol is a method in the eth_ namespace with no parameters (params: none), and its result is a single string (result, string) containing the native coin symbol. On Ethereum mainnet it returns ETH, and other networks return their own symbol. An example request is {"jsonrpc":"2.0","method":"eth_symbol","params":[],"id":1}, and the response takes the form {"id":1,"jsonrpc":"2.0","result":"ETH"}.

Naming background

The alternative name eth_nativeCurrencySymbol was also considered, but it was decided that eth_symbol was sufficient, since the eth_ namespace context and the single return value already make clear that it refers to the native coin's symbol. This method is similar in nature to EIP-695, which returns chainId, and its purpose is to provide the native coin of a network with functionality equivalent to the symbol() already available on ERC-20 tokens.

Security considerations

eth_symbol is a read-only endpoint. However, the reliability of the information returned depends entirely on how trustworthy the given JSON-RPC node is. In other words, if a node provides an incorrect symbol, a user could be misled into thinking they are dealing with a different native coin.

Current status

This proposal is a Standards Track · Interface EIP written on 2020-09-30, and its current status is Stagnant. There is no fork inclusion decision recorded in the call notes or the body.

Original EIP · ← EIPs