Transferring ERC-20 tokens with Delphi

In a previous article, we transferred ether with Delphi. While ether is the number one cryptocurrency on the Ethereum blockchain, the network actually hosts thousands of other cryptocurrencies. Most of these other cryptocurrencies are known as ERC-20 tokens.

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. Unlock MetaMask with your MetaMask password
  2. You should see the MetaMask main menu. In the top of this window, click on Main Ethereum Network
  3. A popup window appears. Click on Ropsten Test Network
  4. follow this link https://faucet.metamask.io and click on request 1 ether from faucet
  5. 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. Click on Write Contract
  2. Click on Connect to Web3
  3. Scroll down to where it reads showMeTheMoney
  4. Paste your (MetaMask test account) address in _to
  5. Enter “1000000000000000000” (no quotes) in _value (uint256)
  6. Click on Write
  7. 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.

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