Skip to main content

sdk.erc20base.allowance

Home > @openformat/sdk > ERC20Base > allowance

ERC20Base.allowance() method

Returns the amount of token that the spender is allowed to withdraw from the holder's account.

allowance

Signature:

allowance(params: ERC20AllowanceParams): Promise<string>;

Parameters

ParameterTypeDescription
paramsERC20AllowanceParams

Returns:

Promise<string>

{Promise<number>} Returns the allowance amount as a number

Exceptions

{Error} Throws an error if there's an issue with the transaction