v1

latestOpenAPI 3.0.02026-07-14293257.6 KB
DeX Swap

Create Liquidity Session

This API is used to create DeX liqudity session for liqudity providing transaction.

post/api/v1/sessions/liquidity

Request body

successURLstring

URL to redirect user after completing a transaction

cancelURLstring

URL to redirect user after cancelling a transaction

userEmailstring required

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

pairstring required

Symbol of pair used for manage liquidity

amount0number required

Amount of pool token0

amount1number required

Amount of pool token1

chainstring 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.

isNativeboolean required

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

addLiquidityboolean required

Indicate whether to add or remove liquidity.

Response

Session is created.

statusCodenumber
messagestring
dataobject

Session object. See https://securo.readme.io/reference/the-session-object for more information.