How to transfer ERC20 tokens with Solidity?

jklepatch

ERC20 tokens allow you to create your own coin inside Ethereum.  They are used in many projects to represent financial assets, in-game assets, collectible, and other kind of assets.

At some point in your project, you will probably need to interact with them. And most often, you will need to transfer tokens.

There are 2 ways to do this:

  • with the `transfer()` function. That’s a simple transfer from A to B
  • with the `transferFrom()` function. That’s a delegated transfer, where an operator (or spender) transfer token from A to B on behalf of A

Watch this 10mins video and you will become a pro at this 🙂

To watch the whole tutorial series on Solidity, follow this link.

More great articles

Introducing the forum of EatTheBlocks

The lonely developer syndrom... Let's say you have been working on a Dapp / smart contract idea. You know what…

Read Story

Introducing “Smart Contract 30”, a 30-day course on Solidity

Are you a beginner learning Solidity? Are you overwhelmed by the complexity of developing an Ethereum smart contract and don't…

Read Story

Interview With Founder Of CryptoJobsList | How To Find A Job In Crypto / Blockchain Industry?

https://youtu.be/YYZN96g1C7g I have interviewed Raman, the founder of cryptojobslist.com. CryptoJobsList is the first job board for crypto / Blockchain jobs.…

Read Story

Never miss a minute

Get great content to your inbox every week. No spam.

    Only great content, we don’t share your email with third parties.
    Arrow-up