Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create draft EIP-symbol #3014

Merged
merged 15 commits into from
Oct 3, 2020
Prev Previous commit
Next Next commit
eip-3014: fix eip references
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
  • Loading branch information
PeterTheOne and lightclient authored Oct 1, 2020
commit 34fa660394477aaa5366244df8f41db5fe810566
2 changes: 1 addition & 1 deletion EIPS/eip-3014.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_symbol","params":[],"id":1}'
```

## Rationale
This endpoint is similar to https://eips.ethereum.org/EIPS/eip-695 but it provides the symbol instead of chainId. It provides functionality that is already there for ERC-20 tokens (https://eips.ethereum.org/EIPS/eip-20), but not yet for the native coin of the network. Alternative naming of `eth_nativeCurrencySymbol` was considered, but the context and the fact that it just returns one value makes it clear that that it returns the symbol for the native coin of the network.
This endpoint is similar to [EIP-695](./eip-695) but it provides the symbol instead of `chainId`. It provides functionality that is already there for [ERC-20](./eip-20) tokens, but not yet for the native coin of the network. Alternative naming of `eth_nativeCurrencySymbol` was considered, but the context and the fact that it just returns one value makes it clear that that it returns the symbol for the native coin of the network.
PeterTheOne marked this conversation as resolved.
Show resolved Hide resolved

## Security Considerations
It is a read only endpoint. The information is only as trusted as the JSON-RPC node itself, it could supply wrong information and thereby trick the user in believing he/she is dealing with another native coin.
Expand Down