Swap tokens in decentralized exchanges
Now that your API key is set up, you can use the API key to swap cryptocurrencies on various decentralized exchanges using Postman/Visual Studio Code (Code IDE), without any gas fee powered by Biconomy.
- 1.Use Postman to test the Securo Payment Module. You need to insert the API and API secret key on the global environment. (Please note that if you don't insert the API & API secret key, you won't be able to test this Dex Swap function.
- 2.Create Swap request and click "Send".
- 3.After clicking "Send" the payment request is successfully created and it will provide a webview URL to access the payment gateway portal.
- 4.First, connect your wallet in the portal.
- 5.Confirm the transaction details, then click “Confirm”.
- 6.Check the Biconomy pop-up message in your wallet. By signing this request, you enjoy gas-less transactions.
- 7.After around a minute, the transaction will be complete.
- 8.Now you have the currency you wanted through the Securo API.