Skip to main content

Check allowance

Get the number of tokens that the swap router is allowed to spend:

baseUrl/{chainId}/approve/allowance

Parameters

NameDescription
tokenAddress * string (query)Token address you want to exchange
walletAddress * string (query)Wallet address for which you want to check

example:

http://router-api.openliq.com/137/approve/allowance?tokenAddress=0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174&walletAddress=0x644a66b76E740d98f0D23C3Ae942163Bb43078C1

{
"errno":0,
"message": "success",
"data": {
"allowance": "0"
}
}