Retrieves the current allowance of an ERC20 token for the specified sender and handler addresses.
Example
// Assuming you have a valid sender address, an ERC20 token instance (erc20Instance), and a handler address (erc20HandlerAddress) constcurrentAllowance = awaitgetERC20Allowance(senderAddress, erc20Instance, erc20HandlerAddress); console.log('Current allowance:', currentAllowance);
Returns
A promise that resolves to a number representing the current allowance of the ERC20 token.
Parameters
senderAddress: string
The address of the token sender.
erc20Instance: ERC20
The ERC20 token instance used to query the allowance.
erc20HandlerAddress: string
The handler address for which the token allowance is checked.
Retrieves the current allowance of an ERC20 token for the specified sender and handler addresses.
Example
Returns
A promise that resolves to a number representing the current allowance of the ERC20 token.