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 DAI and USDT.

Goerli

The Ropsten testnet (launched early 2019) 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 Goerli 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 Brave and Opera. MetaMask supports the Goerli testnet 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 Ethereum Mainnet
  4. A popup window appears. Click on Goerli test network (if Goerli isn’t visible, you might need to click on show/hide test networks first)
  5. follow this link https://goerlifaucet.com
  6. Paste your (MetaMask test account) address and click on Send Me ETH

TST

TST is a test token on the Goerli 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.