In addition to the regular transfer function, ERC20 provides an option to allow other accounts to spend on your behalf. This is made possible by allocating an amount they can spend from your account. This recipe focuses on implementing such approval methods from the token standard.
Delegating other accounts to spend your token
Getting ready
You need to have a development environment that supports solidity programming and an Ethereum network to deploy and test your code.
How to do it...
- ERC20 includes a few functions that enable a user to transfer on behalf of someone...