sdk.constellation.allowance
Home > @openformat/sdk > Constellation > allowance
Constellation.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
| Parameter | Type | Description |
|---|---|---|
| params | ERC20AllowanceParams |
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