XY Finance
Search
K
2️⃣

Get Allowance

If source quoting asset is an ERC20 token, you should ensure that source token owner has approved sufficient token amount to spender before proceed swap operation. This endpoint provide convenient way to check ERC20 allowance amount.
get
https://aggregator-api.xy.finance/v1
/allowance
Get Allowance
NOTE : The spender should be the contractAddress in the response of Get Quote. e.g. routes[{ROUTE_INDEX}]["contractAddress"]
Here you can find our full API reference