Convert a Substrate address into an EVM address

We just need to quickly set up the environment, it’s very simple just follow and along and you will have the EVM version of your Substrate address at the end of this.

Time: less than 5 minutes.

  1. npm init
  2. Name the file “evm-convert”
  3. Copy this code and add into a file called evm-address.js

https://github.com/paritytech/frontier/blob/master/template/utils/evm-address.js

4. Copy this code and add into a file called index.js

https://github.com/paritytech/frontier/blob/master/template/utils/index.js

5. Copy this code and add into a file called package.json

https://github.com/paritytech/frontier/blob/master/template/utils/package.json

6. npm install

Then run this command in the command line inside the directory:

node index.js — evm-address 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY

You should get an EVM address as the result:

Repeat, and replace the substrate address for your chosen address.

Enjoy!

Ramsey

Decentration Labs

--

--

--

Decentralising the web. Stewarding new paradigms. Engineering and product.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Build Fast, JSON-Powered Forms on Angular With NGX Formly

React native Firebase native authentication new version

How NOT to Make a React Native App

Infinite Scrolling With Selenium

How to test you javascript code without any html

Looping objects: object keys, values, and entries

ENS Domains at Huddle01

Creating a slack bot

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ramsey (Decentration)

Ramsey (Decentration)

Decentralising the web. Stewarding new paradigms. Engineering and product.

More from Medium

Last Chance for ParaState Pre-Whitelisting: How to Get Early Access

Adjusted “Blocks per Round” on stakeglmr.com

How to get $2.1+ daily for your $100 (%750 APY) by staking MoonBeam ($GLMR) and why?

Hard Forks and Soft Forks