StandardErc20.allowanceOf() method
Get Token Allowance
Example
// Address of the wallet who owns the funds
const owner = "{{wallet_address}}";
// Address of the wallet to check token allowance
const spender = "0x...";
const allowance = await contract.allowanceOf(owner, spender);
Signature:
allowanceOf(owner: string, spender: string): Promise<CurrencyValue>;
Parameters
Parameter | Type | Description |
---|---|---|
owner | string | |
spender | string |
Returns:
Promise<CurrencyValue>
The allowance of one wallet over anothers funds.
Remarks
Get the allowance of one wallet over another wallet's funds - the allowance of a different address for a token is the amount of tokens that the wallet is allowed to spend on behalf of the specified wallet.