Shiden Network EVM Tutorial

Stakenode - Polkadot Validator
4 min readSep 27, 2021

In this quick guide, I will show You hove to transfer $SDN tokens with Shiden EVM. We will use polkadot.js.apps and Metamask for that. I hope that this guide will help users to move around and use all available functions of Shiden Network. Let’s Go!

Overview

Now that EVM is enabled, more and more developers are deploying their dApps in our ecosystem. One frequently asked question is: “How can I transfer my tokens from MetaMask to polkadot.js.org”. In this tutorial, we will explain how to do this.

Q: Why would you need to do this? A: It’s not possible to transfer SDN tokens from MetaMask to an exchange. This is because MetaMask is using an address format of H160 and SDN uses SS58 format. Meaning, you have to transfer your tokens first to an SS58 address before sending them to an exchange.

Q: Can I import my wallet with SDN in MetaMask? A: No, you first need to create or import an H160 wallet on MetaMask before sending SDN to that address.

Q: Why can’t you just make it compatible? A: Astar ecosystem does not only support EVM but also will support WASM and other L1 ecosystems on Astar. Converting everything into H160 will make it a lot more difficult in the future. In the end, we are not just making a copy of Ethereum.

How to send $SDN Tokens from polkadot.js.apps account to Metamask account.

  1. Open the https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.shiden.astar.network#/accounts

2. Add Shiden Network to Metamask with custom RPC and below Shiden Network Details:

3. Visit https://polkatools.hoonkim.me/index.html

4. Put Your Metamask wallet address into the “Input address” section and change the addressing scheme to H160

5. Copy propagated address and use this one to send funds from polkadot.js.apps.

6. Confirm transaction with polkadot.js.apps

That’s it. If You did all as per the above tutorial, Your SDN tokens balance should be available on Your Metamask on Shiden Network

How to send $SDN Tokens from Metamask account to polkadot.js.apps

  1. Visit https://polkatools.hoonkim.me/index.html

2. Put Your address on the polkadot.js.apps account into the “Input address” section and set the addressing scheme at SS58

3. Copy propagated address and use it as the destination address to send funds from Metamask and accept the transaction.

Very Important! — destination polkadot.js.apps address need to have some $SDN to cover fees for EVM call

5. Go to https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.shiden.astar.network#/extrinsics and select “evm” and “withdraw” from “submit the following extrinsic” list to perform EVM withdraw call.

Put the withdrawal address You used to send funds in H160 format and the withdrawn amount in the value: BalanceOf” section

6. Sign and submit the transaction.

That’s it. Your $SDN should be now in Your polkadot.js.apps

Congratulations. You now know how to use Shiden Network EVM

About Astar

Astar Network (previously known as Plasm) is a dApp hub on Polkadot that supports Ethereum, WebAssembly, and layer 2 solutions like ZK Rollups. Astar aims to be a multi-chain smart contract platform that will support multiple blockchains and virtual machines. Shiden Network is a sister network of Astar Network and a dApp hub on Kusama.

Feel free to reach out to us! Through our Website | Twitter | Discord | Telegram

--

--