XY Finance
Search…
Get Allowance
Returns the allowed spending of tokens by an address on behalf of the token holder.
Before making use of XSwapper, you must approve the contract to spend your token.
You could get the allowance to check whether it's needed or not to approve the XSwapper from this API.
get
endpoint
/approval
Get the allowance of token
NOTE : The spender should be the address of XSwapper, which could be retrieved from the contractAddress in the response of Get Quote.