Skip to content
function getERC20Allowance(ctx, params): Promise<bigint>;

Gets the ERC-20 approved amount for a specific token and spender.

Parameters

ParameterTypeDescription
ctxSDKContextThe SDK context.
paramsGetERC20AllowanceParamsThe parameters dictating the token, spender, etc.

Returns

Promise<bigint>

The approved amount.