The 2 ways to transfer ERC20 Tokens in Solidity
Julien Klepatch
Posted on October 19, 2019
With ERC20 tokens, there are 2 APIs to transfer tokens:
- transfer() (simple transfers)
- transferFrom() (delegated transfer)
For transfer(), there are 3 steps:
- Import the ERC20 token
- Import the address of the token
- Call transfer()
For transfer(), there are 4 steps:
- Import the ERC20 token
- Import the address of the token
- Call approve()
- Call transferFrom()
WATCH Whole Solidity tutorial series:
💖 💪 🙅 🚩
Julien Klepatch
Posted on October 19, 2019
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.