August 2019
Intermediate to advanced
486 pages
13h 52m
English
The allowance() function returns the token amount remaining, which the spender is currently allowed to withdraw from the owner's account. This function returns the remaining balance of tokens from the allowed mapping. The allowed mapping is updated when approve(), transferFrom(), and advanced functions such as increaseApproval() or decreaseApproval() are present and executed.
The following is the API for the allowance() function:
function allowance(address owner, address spender) external view returns (uint256 remaining);
The allowance() function takes two arguments: