Build a smart contract that transfers ERC20 token from your wallet to other ERC20 compliant wallet- Part 1

Alofe Oluwafemi
Coinmonks
13 min readJul 31, 2018

--

Overview

In this tutorial you would be building a smart contract for transferring an ERC20 token to any ERC20 compliant wallet including metamask and exchange addresses. The method shown in this tutorial is a simplified version of what decentralised exchanges such as forkdelta uses. In this first part, we will be writing & testing the smart contract; by the next post, we will build the UI using Reactjs.

Discover and review best Crypto Wallets

What Will I Learn?

You would be learning how to write and test a smart contract that can trasfer tokens from your wallet to other ERC20 compatible addresses.

  • How decentralised exchanges deposit and withdrawl feature mechanism works
  • How to write a smart contract in solidity to transfer ERC20 tokens
  • Testing your smart contract and Interacting with it through the truffle console

Requirements

This tutorial is not a Dapps beginners friendly, so you are advise to have some prior knowledge of how ERC20 token works and basic knowledge of writing solidity code is required.

--

--

Alofe Oluwafemi
Coinmonks

Master of my craft, engineer at ❤ , blockchain enthusiast