DEX integration
Create liquidity pools on Raydium CPMM (Constant Product Market Maker).
POST /dex/raydium/cpmm/create-unsigned
/dex/raydium/cpmm/create-unsignedCreate an unsigned transaction to initialize a Raydium CPMM pool for a token.
Requires JWT authentication.
Send Authorization: Bearer <token>.
Request body
{
"tokenMint": "TokenMintAddress...",
"tokenAmount": "1000000000000",
"solAmount": "1000000000"
}Field notes
tokenAmountis expressed in the token’s smallest unit (respecting the mint’sdecimals).solAmountis expressed in lamports (1 SOL = 1_000_000_000lamports).The quote mint is Wrapped SOL (
So11111111111111111111111111111111111111112).
Response (200 OK)
200 OK)What to do with the response
Decode and sign the returned
transactionwith the user wallet.Submit the signed transaction to Solana.
Use
poolKeysto display or reference the created pool.
Related
Last updated