Skip to main content
POST
Remove liquidity from a pool

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

network
string
required

Body

application/json
assetA
string
required
Example:

"CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA"

assetB
string
required
Example:

"CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75"

liquidity
integer<int64>
required
Example:

"10000000"

amountA
integer<int64>
required
Example:

"10000000"

amountB
integer<int64>
required
Example:

"10000000"

to
string
required
Example:

"GALAXYVOIDAOPZTDLHILAJQKCVVFMD4IKLXLSZV5YHO7VY74IWZILUTO"

slippageBps
string

Slippage tolerance in basis points (bps). 10000 = 100%, 100 = 1%, 50 = 0.5%. Default is 50 bps (0.5%)

Example:

"50"

Response

Returns the transaction xdr and information about the pool