Execute a Swap
Use the response from the previous step to perform a swap
As outlined in the previous page, the /routes
endpoint will return data with the shape of:
For executing a swap, every field that is needed is contained within the details
object.
Here is a breakdown of the details
object:
The details
purposefully details the struct recognized by the Swap router as SwapPayload
. This struct looks like:
Once the transaction has been created, use the user's preferred wallet provider to sign the transaction and send it to be committed on chain.
Last updated