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:
Top comments (0)