---
eip: 3014
label: EIP-3014
title: eth_symbol JSON-RPC method
status: Stagnant
type: Standards Track
category: Interface
created: 2020-09-30
official: https://eips.ethereum.org/EIPS/eip-3014
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-3014.md
canonical: https://eips.huatuo.xyz/ko/eip-3014/
lang: ko
tldr: "네이티브 코인의 티커(예: \"ETH\")를 반환하는 eth_symbol JSON-RPC 메서드를 제안했다. 멀티체인 지갑이 사용자에게 직접 입력하게 하지 않아도 된다."
tags: [json-rpc, wallet, interface, multichain]
---

# EIP-3014: eth_symbol JSON-RPC method

> Add ethsymbol method to the JSON-RPC that returns the symbol of the native coin of the network.

**TL;DR:** 네이티브 코인의 티커(예: "ETH")를 반환하는 eth_symbol JSON-RPC 메서드를 제안했다. 멀티체인 지갑이 사용자에게 직접 입력하게 하지 않아도 된다.

## 어떤 문제를 해결하나요?

많은 EVM 네트워크에 연결하는 지갑은 각 네트워크에 대한 기본 정보가 필요합니다. 체인 ID는 이미 `eth_chainId`([EIP-695](/eip-695/))로 노드에서 읽을 수 있지만, 네이티브 코인의 심볼은 읽을 수 없습니다. 사용자는 커뮤니티 목록에서 찾아 직접 입력해야 했습니다.

ERC-3014는 [ERC-20](/eip-20/) 토큰이 자기 `symbol()`을 보고하는 것처럼 노드가 이를 직접 보고하게 하자고 제안합니다.

## 어떻게 동작하나요?

새로운 읽기 전용 메서드:

- **메서드:** `eth_symbol`
- **파라미터:** 없음
- **반환값:** 네이티브 코인의 심볼을 담은 문자열. 예: 메인넷에서는 `"ETH"`

스펙은 이것이 전부입니다. 작성자는 `eth_nativeCurrencySymbol`이라는 이름도 고려했지만, `eth_` 네임스페이스와 단일 반환값만으로 의미가 분명하기 때문에 더 짧은 이름을 택했습니다.

## 샘플 코드

스펙에 나온 원시 JSON-RPC 요청과 응답:

```bash
curl -X POST -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"eth_symbol","params":[],"id":1}' \
  "$RPC_URL"
```

```json
{ "id": 1, "jsonrpc": "2.0", "result": "ETH" }
```

ethers v6에서 호출하기. 대부분의 노드가 구현하지 않으므로 폴백을 둡니다.

```ts
import { JsonRpcProvider } from "ethers";

const provider = new JsonRpcProvider(process.env.RPC_URL);

async function nativeSymbol(): Promise<string | undefined> {
  try {
    return await provider.send("eth_symbol", []);
  } catch {
    return undefined; // method not supported: use your own chain list
  }
}
```

## 알아둘 점

- 상태는 **Stagnant**입니다. 주요 클라이언트는 `eth_symbol`을 구현하지 않으므로 이에 의존하지 마세요.
- 이 값은 노드만큼만 신뢰할 수 있습니다. 악의적인 RPC가 오해를 부르는 심볼을 보고해, 사용자가 어떤 코인을 다루는지 속일 수 있습니다.
- 실제로 지갑은 자체 체인 목록이나 `wallet_addEthereumChain`([EIP-3085](/eip-3085/))으로 전달되는 `nativeCurrency` 필드에서 네이티브 통화를 알게 됩니다.


---

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