Swap Link
Last updated
Was this helpful?
Last updated
Was this helpful?
You can programmatically generate a swap from your backend and then display the Layerswap UI to your users for transaction completion. This allows them to finalize the swap while benefiting from the Layerswap UX. To achive this:
using the Layerswap API.
Retrieve the swap_id
from the response.
Construct a link to the transaction using the following format: https://www.layerswap.io/app/swap/{SWAP_ID_FROM_PREVIOUS_STEP}
Either redirect the user to the or set the URL in your .