Create Swap Session
This API is used to create DeX swap session for token swap transaction.
Request body
URL to redirect user after completing a transaction
URL to redirect user after cancelling a transaction
An existing user email needs to be provided when creating a transaction session
Symbol of token used for swap from
Symbol of token used for swap to
Slippage tolerance percentage
Amount of tokens to swap
Blockchain to which the transaction will be sent. See https://thirdfi.readme.io/reference/dexswap-overview#list-of-chains-we-supported for more information.
If true, native token will be used. If false, wrapped tokens (E.g. WETH) will be used. defaults to false
If true, the exact amount entered will be considered as input token amount. If false, the entered amount will be considered as required output amount. Default to true
Response
Session is created.
Session object. See https://thirdfi.readme.io/reference/the-session-object for more information.