Transferring ERC-20 tokens with Delphi

ERC-20

ERC-20 is a smart contract interface on the Ethereum blockchain for implementing tokens. ERC stands for Ethereum Request for Comment, and 20 is the number that was assigned to this request. Most of the tokens issued on the Ethereum blockchain are ERC-20 compliant. Because all ERC-20 tokens must adhere to the ERC-20 standard, it is super easy for an exchange to list them because from the technical perspective they all are basically identical. Among the most successful ERC-20 tokens are BNB and BAT and OMG.

Ropsten

The Ropsten testnet (launched in late 2016) is essentially a testing environment that you can use before you bring your code onto the mainnet. When developers are building dApps, or experimenting on the network, they use the Ropsten testnet to avoid losing money paying real-world ether for transaction fees and smart contract deployments.

MetaMask

MetaMask is a feature-rich Ethereum wallet for Chrome and Firefox and Opera. MetaMask supports the (Ropsten and Kovan and Rinkeby) test nets and makes it super easy to load up your account with test ether.

  1. Click on the MetaMask icon
  2. Unlock MetaMask with your MetaMask password
  3. You should see the MetaMask main menu. In the top of this window, click on Main Ethereum Network
  4. A popup window appears. Click on Ropsten Test Network
  5. follow this link https://faucet.metamask.io and click on request 1 ether from faucet
  6. You should be greeted with this (MetaMask) dialog:

TST

TST is a test token on the Ropsten network. Because TST is an ERC-20 token, it adheres to the ERC-20 smart contract interface. Etherscan has a feature called Write Contract and it allows to directly interact with the TST smart contract through the use of MetaMask.

  1. Navigate to the TST smart contract
  2. Click on Write Contract
  3. Click on Connect to Web3
  4. Scroll down to where it reads showMeTheMoney
  5. Paste your (MetaMask test account) address in _to
  6. Enter “1000000000000000000” (no quotes) in _value (uint256)
  7. Click on Write
  8. You should be greeted with this (MetaMask) dialog:

Delphereum

Clone Delphereum and the dependencies. Launch Delphi. Start a new project. Please make sure the dependencies are in your search path.

--

--

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
Stefan

Stefan

Delphi/Rust/Go developer. Ethereum consultant. Embarcadero MVP. Ex-Adobe, Macromedia. Helped build 1Password.