9

I would like to service users on both Substrate and EVM (Ethereum Virtual Machine) blockchains. But the two systems do some things differently. What would be the best way to deploy a blockchain that supports both Substrate and EVM?

1
  • 1
    just to be clear: by default a substrate chain does nothing, you have to add pallets for the protocol, WASM Contracts, EVM contracts, governance, even the token is a pallet. So be careful and make sure your chain has all the bells and whistles you need.
    – Micha Roon
    Feb 8, 2022 at 23:23

3 Answers 3

4

You can deploy to Moonbeam/Astar or if you fancy having a go yourself you can check out the EVM Pallet

https://paritytech.github.io/frontier/frame/evm.html

1
  • The EVM Pallet seems interesting. Do you have any idea about the stated "customizable conversion functions" used to map Substrate accounts and EVM external accounts?
    – John Otu
    Feb 9, 2022 at 9:14
3

Most evm compatible substrate chains uses pallet-evm and pallet-ethereum provided by frontier, for example Moonbeam, ChainX, Edgeware etc.

You can start with the Substrate Frontier Node Template project.

It is a FRAME-based Substrate node with the Ethereum RPC support, ready for hacking.

You can deploy the frontier node the same way you do a substrate node.

2
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Feb 23, 2022 at 17:36
  • @navigaid: Frontier is the Ethereum compatibility toolkit. To have EVM compatibility alone, you don't need to make your chain Ethereum compatible. You could just use pallet-evm. Mar 21, 2022 at 16:54
3

You can turn your substrate into being as close as possible to ethereum by adopting ethereum conventions for example changing address types to match. But if you do that, those addresses need a translation step when talking to other parachains (not a problem if you have a solo chain). It's a question of trade offs and finding a happy medium.

There was a fantastic walk-though of how to create a compatible chain at Sub0 (it's intense but an amazing demonstration of the flexibility that the generics gives you).

Remember the other option which may be more appropriate to your use case is rather than doing all the work to build an EVM compatible chain, you could build on one of the existing EVM compatible chain platforms like Moonbeam, Acala or Astar for example that each have chosen different tradeoffs on EVM compatibility.

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.