Skip to main content
POST
Exit position to either pool token

Authorizations

Authorization
string
header
required

API key issued by a Hedgin administrator, in the form hv1_<id>_<secret>. <id> is 1 to 48 characters and <secret> is 32 to 128 characters, both from [A-Za-z0-9_-].

Body

application/json
vault
string
required

Vault the transaction acts on.

Pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
Example:

"So11111111111111111111111111111111111111112"

position
string
required

DLMM position owned by the vault.

Pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
Example:

"So11111111111111111111111111111111111111112"

slippageBps
integer
required

Slippage tolerance in basis points. The server lowers it to the protocol's maxSlippageBps when it is higher.

Required range: 1 <= x <= 10000
cursorBinId
integer

First bin to process. Use it to resume after partial progress.

outputMint
string

Token to end in. Defaults to the vault deposit mint. Must be one of the pool's two mints or the deposit mint.

Pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
Example:

"So11111111111111111111111111111111111111112"

minOut
object

Floor of the zap swap.

followUpMinOut
object

Floor of the follow-up dlmm/zap-out/swap into the deposit mint, for a pool without it.

separateSwap
boolean

Withdraw first and swap the returned non-deposit token after, in a dlmm/zap-out/swap step of its own, under minOut.

Response

Build result. One step or a batch.

vault
string
required

Base58 Solana public key. The server decodes it and rejects anything that is not 32 bytes.

Pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
Example:

"So11111111111111111111111111111111111111112"

result
Single step · object
required

One unsigned transaction and its ticket. Builders can add action metadata fields next to these.