Using the ERC-20 Contract

This guide introduces you to using an ERC-20 contract on the Casper Network.

The Ethereum Request for Comment (ERC-20) standard defines a set of rules that dictate the total supply of tokens, how the tokens are transferred, how transactions are approved, and how token data is accessed. These ERC-20 tokens are blockchain-based assets that have value and can be transferred or recorded.

We will employ the following test accounts to demonstrate the use of an ERC-20 contract and transfer tokens between user accounts:

To execute transactions on the Casper Network (involving ERC-20 tokens), you will need some CSPR tokens to pay for the transactions.

To understand the implementation of a Casper ERC-20 contract, see the ERC-20 Tutorial.

Prerequisites

Before you dive into the details of this guide, ensure you meet these requirements:

  • Set up your machine as per the prerequisites

  • Use the Casper command-line client

  • Get a valid node-address

  • Know how to deploy a smart contract to a Casper network

  • Get some CSPR tokens to pay for transactions