How to create and deploy an XRC-20 token on the XinFin blockchain network

  • total supply: A method that defines the total supply of your tokens, When this limit is reached the smart contract will refuse to create new tokens.
  • balance of: A method that returns the number of tokens a wallet address has.
  • transfer: A method that takes a certain amount of tokens from the total supply and gives it to a user.
  • transfer from: Another type of transfer method which is used to transfer tokens between users.
  • approve: This method verifies whether a smart contract is allowed to allocate a certain amount of tokens to a user, considering the total supply.
  • allowance: This method is exactly the same as the approved method except that it checks if one user has enough balance to send a certain amount of tokens to another.




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Robustness of Incentive Mechanisms with Volatile Tokens

A Look at Kodak’s Foray into a Misleading, Possibly Illegal Bitcoin Mining Venture

XT Will List OUSD (5/20/2021)

Travala vs air miles

New Ethereum DeFi Report: The Rise of Wrapped Bitcoin, ETH Insurance, and Yield Farming

Don’t Watch Globalization, Use It!

Darkpool Terminal

N2 Coin: The Gateway to GloFi

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
ruslan wing

ruslan wing

More from Medium

Implement Multi Send on XinFin Network by Smart Contract with solidity

LSP Circulation Report — December 2021

Poly Network Monthly Report (Jan)

Axelar Network