Create a Pool
Parameters
| Parameter | Type | Description |
|---|---|---|
assetAAddress | string | Public key of the base asset |
assetBAddress | string | Public key of the quote asset |
tickSpacing | number | Minimum tick increment (10, 60, or 200) |
initialPrice | string | Starting price of asset A in terms of asset B |
lpFeeRateBps | number | Fee to liquidity providers in basis points |
hostFeeRateBps | number | Fee to host/integrator in basis points |
hostNamespace | string | Optional host namespace for fee sharing |
poolOwnerPublicKey | string | Optional pool owner (defaults to your wallet) |
Tick Spacing
Tick spacing controls the granularity of liquidity positions. Lower spacing allows tighter ranges but increases swap complexity.| Tick Spacing | Price Step | Best For |
|---|---|---|
| 10 | 0.1% | Stable pairs (USDB/USDC) |
| 60 | 0.6% | Standard pairs (BTC/USDB) |
| 200 | 2% | Volatile pairs |
Setting Initial Price
The initial price determines the starting tick of the pool. Express it as asset A’s price in terms of asset B:Fee Configuration
Fees are expressed in basis points (1 bps = 0.01%):| Fee (bps) | Percentage | Use Case |
|---|---|---|
| 50 | 0.5% | Stable pairs |
| 300 | 3% | Standard pairs |
| 1000 | 10% | Volatile/exotic pairs |
lpFeeRateBps + hostFeeRateBps. LP fees go to liquidity providers proportional to their share. Host fees go to the integrator.
Host Namespace
Assign a host namespace to track integrator fees:After Creation
The pool starts empty. Add initial liquidity to enable trading:Validation Rules
Pool creation will fail if:assetAAddressequalsassetBAddresstickSpacingis not 10, 60, or 200initialPriceis empty or invalidhostFeeRateBpsis below the host’s minimum (if namespace specified)- A pool with the same asset pair and tick spacing already exists
Response
| Field | Type | Description |
|---|---|---|
poolId | string | Pool identifier (LP identity public key) |
initialTick | number | Starting tick derived from initial price |
message | string | Success confirmation |
Next Steps
- Concentrated Liquidity - Learn the V3 model
- Managing Positions - Add and manage liquidity
- Free Balances - Optimize for frequent operations