---
title: "Zap-In — Generate transaction to add liquidity to a pool"
method: POST
path: "/pools/{poolId}/add-tx"
tags: ["Pools"]
---

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

`POST /pools/{poolId}/add-tx`

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.

## Path parameters

- `poolId` string, required

## Request body

- object
  - `stratergy` 'Spot' | 'Curve' | 'BidAsk', required — The distribution strategy to use
  - `inputSOL` number — Amount of SOL to input
  - `percentX` number — Percentage of capital to allocate to token X (0-1)
  - `fromBinId` integer — Starting bin ID for liquidity distribution
  - `toBinId` integer — Ending bin ID for liquidity distribution
  - `amountX` number — Specific amount of token X (alternative to percentX)
  - `amountY` number — Specific amount of token Y (required with amountX)
  - `owner` string, required — Owner wallet address
  - `slippage_bps` integer — 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 `200`

Successfully generated zap-in transactions

- object
  - `status` string
  - `data` object
    - `lastValidBlockHeight` number
    - `swapTxsWithJito` string[]
    - `addLiquidityTxsWithJito` string[]
    - `meta` object

## Other responses

- `400` — Invalid parameters provided
- `500` — Internal server error

## Changes

- **2026-03-16** `dbab3b96efd1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/lpagent/apis/lp-agent-open-api/changes/pools/:poolId/add-tx/post.md)

---

[API](https://skmtc.dev/lpagent/apis/lp-agent-open-api.md) · [All operations](https://skmtc.dev/lpagent/apis/lp-agent-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lpagent/lp-agent-open-api/revisions/f90fd69d221b/schema)
