3⃣
Build Approval Transaction
If your allowance is not sufficient, this endpoint can help you initiate an ERC20 approval transaction.
get
https://aggregator-api.xy.finance/v1
/approveTx
Get Approve Tx
NOTE : The spender should be the
contractAddress
in the response of Get Quote.
e.g. routes[{ROUTE_INDEX}]["contractAddress"]
Last modified 12d ago