Skip to main content
DLMM Pro is in beta and is subject to breaking changes.
This guide creates a DLMM Pro pool with Meteora Invent, seeds it with liquidity, and then covers the actions you run on a live pool: swaps, limit orders, fee claims, locks and withdrawals. Each step is one command that reads studio/config/dlmm_pro_config.jsonc. DLMM Pro is a separate program from DLMM. It prices on ticks instead of bins, holds up to 45 price ranges in one position NFT, and keeps limit orders in the same pool as LP liquidity. If those terms are new to you, read What is DLMM Pro? first.

What You Will Build

  • A DLMM Pro pool for your token, created from a published static config or as a launch pool with your own fee and activation settings
  • A position that seeds the pool, shaped with a Spot, Curve, Bid-Ask or Wave strategy
  • Optionally, a permanent or vesting lock on that liquidity, and limit orders around the price

Prerequisites

  • Node.js >= 22.12.0
  • pnpm >= 10.0.0
  • A wallet with SOL on the network you use. A pool of two SPL Token mints costs about 0.011 SOL in rent. A position costs about 0.013 SOL with one range and about 0.04 SOL with ten, and nearly all of that is refunded when the position is closed.
If you don’t have pnpm installed, you can install it by running the following command.
Terminal
DLMM Pro actions run on devnet and mainnet, where the program has the same address. The local test validator started by pnpm studio start-test-validator does not load the DLMM Pro program.

How the Actions Behave

Every dlmm-pro-* command follows the same rules:
  • Token X is the base token and token Y is the quote token. dlmm-pro-create-pool creates the pool that way, and every price in the config file is in token Y per 1 token X, in whole tokens.
  • Positions and limit orders are NFTs. A command prints the NFT mint of what it creates, and the --position and --limitOrder flags take that mint, not the account address.
  • Every transaction is simulated before it is sent. With "dryRun": true the command stops after the simulation. With "dryRun": false it sends the transaction only when the simulation passed. A failed simulation prints the program logs and the name of the DLMM Pro error, and nothing is sent.
  • Steps that belong together go out as one transaction when they fit in one, so they succeed or fail together and a dry run covers all of them. This applies to opening a position and depositing into it, to withdrawing, claiming and closing, and to cancelling and closing a limit order. A position spread over many tick arrays does not fit in one transaction. Its steps are then sent one after another, and a dry run tells you which later steps it could not simulate.

Steps

1

Clone and Set Up Meteora Invent

Meteora Invent is a toolkit consisting of everything you need to invent innovative token launches on Meteora. Run the following command in your terminal to get started.
Terminal
Then install the project dependencies.
Terminal
2

Set Up Your Wallet

Copy the example environment file and set PRIVATE_KEY to the private key of the wallet that will create the pool.
Terminal
Then generate the keypair file the actions sign with.
Terminal
This writes keypair.json to the studio directory. If the devnet airdrop is refused, request SOL for your wallet address at faucet.solana.com.
3

Choose a Pool Type

A DLMM Pro pool is created in one of three ways. The poolType field of the config file selects which one.Use a static config when one of the published configs has the tick spacing and fees you want. Use a launch pool when you need settings no config offers, such as a fee that starts high and falls, or activation rules that open trading at a set time. A dynamic config gives a launchpad the same control and a share of the protocol fee, and requires a config created for your wallet by Meteora.Nothing about a pool can be changed after it is created. Pool Creation and Activation explains each pool type in full.
4

Configure the Pool

Open studio/config/dlmm_pro_config.jsonc. The file holds the shared settings, the pool settings in dlmmProConfig, and one block for each of the other actions.
The comments in the file explain each setting. Read them while you configure your pool.
dlmm_pro_config.jsonc
The settings that decide what pool you get:

Initial Price

A pool’s range edges and limit orders can only sit on usable ticks, which are the multiples of its tick spacing. The pool starts on the usable tick at or below initialPrice, so the starting price is at most one tick spacing below the price you set. One tick is a 0.01% price step, so with tick spacing 32 the difference is under 0.32%. The command prints the price the pool starts at.Starting on a usable tick is what lets you seed the pool with the base token alone in a later step.

Static Config Index

Each published static config fixes a tick spacing, a base fee schedule, the fee token, the dynamic fee and the extensions. There are 1,848 of them, at the same addresses on devnet and mainnet, and the index is built from four choices:
Pool Fee Configs lists every tier, schedule and variant with the address of each config. dlmm-pro-create-pool reads the config from the chain and prints its settings, so a dry run confirms what an index gives you.

Pool Parameters

A launch pool or a dynamic config pool takes its settings from poolParameters:Fees explains the base fee modes and the dynamic fee.
5

Create the Pool

Run the command with "dryRun": true first.If you already have a base mint, pass it with the --baseMint flag.
Terminal
If you don’t have a base mint, configure createBaseToken in the config file and run the command without the flag. Minting a token sends transactions, so this path needs "dryRun": false.
Terminal
A dry run from a static config prints what the pool will be and the result of the simulation:
Output
When the output is what you want, set "dryRun": false and run the command again. Save the pool address. Every other command takes it as --poolAddress.To check the pool, read it back:
Terminal
The command prints the pool’s two mints, its price, current tick and tick spacing, followed by your positions. A new pool has none, and it has no liquidity, so it cannot be swapped on until the next step.
6

Seed the Pool With Liquidity

dlmm-pro-open-position opens a new position, spreads liquidity over a price range in the shape of a strategy, and deposits into it. Configure the openPosition block:Which tokens a range takes depends on where it sits. A range above the current price takes only token X, a range below it takes only token Y, and a range around it takes both.
To seed a new pool with your token alone, set minPrice to the initialPrice you created the pool with and amountY to 0. The pool started on the usable tick at or below that price, so the range begins exactly at the pool price and needs no quote token.
Terminal
The command prints the range it resolved, the number of ranges and the deposit before it simulates:
Output
Save the position NFT mint. A dry run generates a new mint each time, so only keep the one printed by the run that sent the transaction. Run dlmm-pro-get-positions again to see the position with the price bounds and token amounts of each range.
Each run opens a new position. Depositing into a position that already exists is done with the TypeScript SDK.
7

Lock the Liquidity (Optional)

dlmm-pro-lock-position locks a share of a position’s unlocked liquidity. Locked liquidity stays in the pool and keeps earning fees and rewards. Configure the lockPosition block:
  • bps is the share of the unlocked liquidity to lock, where 10000 is all of it.
  • vesting set to null locks permanently.
  • vesting set to a schedule releases the liquidity over time. The cliff share unlocks at cliffPoint, then bpsPerPeriod unlocks every periodFrequency for numberOfPeriod periods. cliffUnlockBps + bpsPerPeriod × numberOfPeriod must equal 10000, and a position can have one schedule.
A permanent lock cannot be undone. The locked liquidity can never be withdrawn, and a position that holds any can never be closed. Run the command with "dryRun": true and check the position and the share before you send it.
Terminal
The --position flag is only needed when your wallet has more than one position on the pool. Without it, a command that finds several positions stops and lists their NFT mints. Positions explains both kinds of lock.
8

Place Limit Orders (Optional)

Every DLMM Pro pool accepts limit orders. An order rests on up to 25 ticks, fills at the exact price of each tick as swaps cross it, and earns a share of the trading fee. An ask sells token X above the current price. A bid buys token X with token Y at or below it.Configure the placeLimitOrder block with a side and one { price, amount } entry for each tick. The amount is in token X for an ask and in token Y for a bid. An ask price rounds up to the next usable tick and a bid price rounds down, so an order never rests at a worse price than the one you set.
Terminal
The command prints the tick and price each entry resolved to, and the limit order NFT mint. Save the mint if you want to cancel that order on its own.To see your orders and how far each tick has filled, run the following command.
Terminal
Output
To cancel an order, run the following command.
Terminal
Cancelling withdraws the unfilled deposit, the proceeds of what was filled and the order’s fee share, then closes the order and refunds its rent. A filled order pays out nothing until it is cancelled.
Omit the --limitOrder flag and set cancelLimitOrder.cancelAll to true in dlmm_pro_config.jsonc to cancel every order you have on the pool in one run.
Limit Orders explains how orders fill and what they earn.
9

Swap, Claim Fees and Withdraw

To swap, configure the dlmmProSwap block with the input amount, the slippage and the direction, then run the following command.
Terminal
The command quotes first and prints the amount out, the minimum it will accept and the price before and after. It stops without sending when the pool cannot take the whole input.To claim the swap fees of your positions, and the rewards on a pool with liquidity mining, run the following command.
Terminal
It claims for every position your wallet has on the pool. Pass --position to claim for one. Fees earned by limit orders are not claimed here. They are paid when the order is cancelled.To withdraw, configure the removeLiquidity block and run the following command.
Terminal
bps is the share of the unlocked liquidity to withdraw from every range. With bps at 10000 and closePosition set to true, the command also claims the position’s fees and rewards, closes the position and refunds its rent. That is the full exit, and it also closes a position that is already empty.

Timed and Price-Gated Launches

A launch pool or a dynamic config pool can carry activation rules, set in poolParameters.activation. They decide when swaps, deposits and withdrawals open to everyone, and they name a wallet for each action that can act before then. Leave activation as null for a pool that is open as soon as it is created. This example opens trading at a set time. Until then only your wallet can deposit, so you can seed the pool first. The fee starts at 50% when trading opens and falls to 1% over 30 minutes.
dlmm_pro_config.jsonc
Replace the three points with your own launch time. Fee schedules count from swapPoint. Setting bondingCurveTargetBps as well keeps public deposits and withdrawals closed after trading opens, until the price has risen to the target. Setting it without timeBased opens swaps at once and gates only deposits and withdrawals. Activation Rules covers every combination.

Troubleshooting

What is DLMM Pro?

Ticks, multi-range positions, limit orders, fees and launch controls.

Pool Fee Configs

Every published static config, how the index is built and each address.

DLMM Pro TypeScript SDK

Build what the commands do not cover: deposits into existing positions, delegates and reward campaigns.

All Invent Actions

The full list of Meteora Invent commands for every program.