Skip to main content
POST
/
dammv2
/
initialize
Initialize a DAMMv2 position
curl --request POST \
  --url https://public-api.cleopetra.fun/dammv2/initialize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user": "<string>",
  "mode": "normal",
  "pool": "<string>",
  "amount_x": "<string>",
  "amount_y": "<string>",
  "amount_sol": "<string>",
  "slippage": 500,
  "platform_bps": 123,
  "platform_fee_account": "<string>"
}'
{
  "transactions": [
    "<string>"
  ],
  "position_nft_mint_kp": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
user
string
required

User wallet address

mode
enum<string>
default:normal
required

Transaction mode

Available options:
normal,
zap
pool
string
required

Pool address

amount_x
string

Amount of token X

amount_y
string

Amount of token Y

amount_sol
string

Amount of SOL for zap mode

slippage
number
default:500

Slippage tolerance in basis points

platform_bps
number

Platform fee in basis points

platform_fee_account
string

Platform fee wallet address

Response

200 - application/json

Successful response with transaction data and position NFT mint

transactions
string[]
required

Array of base64 encoded transactions

position_nft_mint_kp
string
required

Position NFT mint keypair