Solidity Tutorial: ERC20 token transfers (transfer, transferFrom, approve)
EatTheBlocks EatTheBlocks
160K subscribers
48,428 views
0

 Published On Oct 18, 2019

FREE MASTERCLASS "Get Into Web3 In a Bear Market"
👉 Link: https://eattheblocks.com/masterclass
👉 Full roadmap to learn Web3 Development & get a 6 figure remote job
👉 EVEN during this bear market

With ERC20 tokens, there are 2 APIs to transfer tokens:

- transfer() (simple transfers)
- transferFrom() (delegated transfer)

For transfer(), there are 3 steps:

1. Import the ERC20 token
2. Import the address of the token
3. Call transfer()

For transfer(), there are 4 steps:

1. Import the ERC20 token
2. Import the address of the token
3. Call approve()
4. Call transferFrom()

Watch this video to understand how this all fits together, so that you learn how to transfer ERC20 tokens in Solidity.

WATCH Whole Solidity tutorial series:    • Solidity Tutorial: Introduction  

show more

Share/Embed