API ReferenceTransactions, wallets, and signaturesFunction
getERC20Allowance()
function getERC20Allowance(ctx, params): Promise<bigint>;Gets the ERC-20 approved amount for a specific token and spender.
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | SDKContext | The SDK context. |
params | GetERC20AllowanceParams | The parameters dictating the token, spender, etc. |
Returns
Promise<bigint>
The approved amount.