跳转到主要内容
POST
Zap-Out - Estimate what a withdrawal pays out

授权

x-api-key
string
header
必填

API key for authentication

请求体

application/json
bps
integer
必填

Basis points of the position to withdraw (1-10000). 10000 closes it and claims its fees.

必填范围: 1 <= x <= 10000
示例:

10000

position_id
string

The position address, as passed to decrease-tx. This is the id (same value as tokenId) that /lp-positions/open returns. Either this or id is required.

示例:

"Ep22EwKegXis3bTC6P8JLgsHaT5J2beM2TncKe2Hmv24"

id
string

An encrypted position ID, still accepted in place of position_id. The id that /lp-positions/open returns on this API is already the plain position address: send that one as position_id.

outputs
enum<string>[]

Price only these output options (default all four)

可用选项:
allToken0,
allToken1,
both,
allBaseToken
示例:

响应

One estimate per requested output. An estimate with ok=false carries the reason (e.g. no swap route).

status
string
示例:

"success"

data
object