Check allowance
Get the number of tokens that the swap router is allowed to spend:
baseUrl/{chainId}/approve/allowance
Parameters
Name | Description |
---|---|
tokenAddress * string (query) | Token address you want to exchange |
walletAddress * string (query) | Wallet address for which you want to check |
example:
{
"errno":0,
"message": "success",
"data": {
"allowance": "0"
}
}