1

Can I modify the native currency symbol in a private blockchain using geth to represent 'XXX' instead of 'ETH'? Which part of the go-ethereum/geth source code or file allows this alteration, and can this be defined within the genesis.json file?

6
  • Have you searched for it ? Commented Nov 5, 2021 at 14:19
  • Yes, I have searched a lot, but with no results.. I am wondering if it is possible to added in any way at the genesis file.. Commented Nov 5, 2021 at 14:38
  • @trasgoverde There's nothing in the go-ethereum code that uses ETH as symbol for the currency. There may be some comments or string but it is not part of the blockchain rules. The name used by exchanges is mostly defined by them some use ETH, other use $ETH, XET, etc.
    – Ismael
    Commented Nov 6, 2021 at 5:04
  • I have seen thata some forks did it, change the name of the native coin => cheapeth, bsc and others did the fork changing the name of the native coin. Any clues to do it? Thanks in advance Commented Nov 6, 2021 at 10:26
  • Well, after some new searching, seems that the only way is L2 EVM chains. Commented Nov 7, 2021 at 0:05

1 Answer 1

1

As in all comments, the symbol ETH and name Ethereum is not part of the code.

You can create an endpoint layer to hide the default RPC calls and provide to the user whatever you want.

An easy way to do that is create a SpringBoot REST API to publish to the world and hide the Execution layer inside a protected VLAN (may be a Docker infra). You create "REST Controllers" to change the default signature methods from the Execution node RPC protocol and give the coin name you want.

You will gain twice because your nodes will be invisible and inaccessible from outside. The only touch point will be your REST API.

I think Binance BNB do it this way, but all its RPC calls still WEB3 compatible using "ETH".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.