XY Finance
Search…
XY Finance
Introduction
User Guide
X Swap
Y Pool
DAO
Getting Started
Protocol
XY Token
Roadmap
Audit Reports
Addresses
products
X Swap
Y Pool
Smart Contracts
DEVELOPER
X Swap API
v0
Supported Blockchains
Get Quote
Get Allowance
Build Approval Transaction
Build Swap Transaction
Cross Chain Status
v1
Policy
Additional Resources
Telegram
Medium
Twitter
Powered By
GitBook
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
.
Previous
Get Quote
Next
Build Approval Transaction
Last modified
4d ago
Copy link
Contents
get
Get the allowance of token