Create Swap Session

This API is used to create DeX swap session for token swap transaction.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Session body

string
Defaults to https://securo.dev

URL to redirect user after completing a transaction

string
Defaults to https://securo.dev

URL to redirect user after cancelling a transaction

string
required

An existing user email needs to be provided when creating a transaction session

string
required

Symbol of token used for swap from

string
required

Symbol of token used for swap to

string

Slippage tolerance percentage

number
required

Amount of tokens to swap

string
required

Blockchain to which the transaction will be sent. See https://securo.readme.io/reference/dexswap-overview#list-of-chains-we-supported for more information.

boolean

If true, native token will be used. If false, wrapped tokens (E.g. WETH) will be used. defaults to false

boolean

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

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json