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
Build Approval Transaction
Returns the data for approval of token spending
This API returns the transaction that approves the XSwapper to spend your token.
get
endpoint
/approve
Get the approve transaction
NOTE :
The spender should be the address of XSwapper, which could be retrieved from the
contractAddress
in the response of
Get Quote
.
IMPORTANT :
Note that amount
parameter should be with decimals.
Previous
Get Allowance
Next
Build Swap Transaction
Last modified
4d ago
Copy link
Contents
get
Get the approve transaction