v19

latestOpenAPI 3.0.0raw.githubusercontent.com2026-05-25200153.4 KB
Pools

Zap-In — Generate transaction to add liquidity to a pool

Generate serialized zap-in transactions to add liquidity to a pool. Supports both DLMM and DAMM V2 pools (auto-detected by pool address). In zap-in mode, provide SOL and the API auto-swaps to the correct token ratio. Returns serialized transactions ready to be signed and landed.

post/pools/{poolId}/add-tx

Path parameters

poolIdstring required

The pool address

Request body

stratergy'Spot' | 'Curve' | 'BidAsk' required

The distribution strategy to use

inputSOLnumber

Amount of SOL to input

percentXnumber

Percentage of capital to allocate to token X (0-1)

fromBinIdinteger

Starting bin ID for liquidity distribution

toBinIdinteger

Ending bin ID for liquidity distribution

amountXnumber

Specific amount of token X (alternative to percentX)

amountYnumber

Specific amount of token Y (required with amountX)

ownerstring required

Owner wallet address

slippage_bpsinteger

Slippage tolerance in basis points (e.g., 500 = 5%)

provider'OKX' | 'JUPITER_ULTRA'

Swap provider to use for token swaps

mode'normal' | 'zap-in'

Add liquidity mode

Response

Successfully generated zap-in transactions

statusstring

Example response

{
  "status": "success"
}