DEX integration

Create liquidity pools on Raydium CPMM (Constant Product Market Maker).

POST /dex/raydium/cpmm/create-unsigned

Create an unsigned transaction to initialize a Raydium CPMM pool for a token.

Request body

{
  "tokenMint": "TokenMintAddress...",
  "tokenAmount": "1000000000000",
  "solAmount": "1000000000"
}

Field notes

  • tokenAmount is expressed in the token’s smallest unit (respecting the mint’s decimals).

  • solAmount is expressed in lamports (1 SOL = 1_000_000_000 lamports).

  • The quote mint is Wrapped SOL (So11111111111111111111111111111111111111112).

Response (200 OK)

What to do with the response

  1. Decode and sign the returned transaction with the user wallet.

  2. Submit the signed transaction to Solana.

  3. Use poolKeys to display or reference the created pool.

Last updated