Guide
Last updated
Last updated
Before you start using sweep swap API, make sure you understand the content of the swap API. Normally, you only need to use a transaction body different from the swap API in the last step to build. Check below OpenOcean swap API as reference. It currently applies to V3 version.
Here is the last step! Now you have several ways to swap the token you selected. You can use the multi_swap_quote API to get the transaction body from our API server. Here is a case for you to make a transaction on Arbitrum Chain.
The work flow we recommend for API users, is using swap_quote API to get transaction body, then use the wallet to request your transaction on chain.
Once your wallet plugin was triggered, which means you are successfully using the sendTransaction
function and all params are set. You can swap your token and the transaction hash can be fetched once your transaction is sent on-chain.