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

LeetCode 344. Reverse String — JavaScript Basics

Insights from deep-diving into TypeScript

Navigation in React: React-Routers

Writing a CLI with Gluegun

Logs, Monitoring and NodeJs in Harmony — 1

Build Your Own Developer tools in Node.js

What is Amazon Athena and how to use it in Node.js?

AWS Athena relation with AWS S3 and AWS Glue

Components in React

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

Imbue Achieves First Milestone for Web3 Foundation Grant

A Compliant Bridge to the Web3 Future with DIA & CF Benchmarks

Shawn Tabrizi — Polkadot Lead Developer. Interview recap at ETH Denver.

The Drop on Polkadot