This endpoint starts the process of creating a new constant product pool. The request is validated, stored for tracking, and then forwarded to the settlement service. The response includes a request ID that can be used to poll the status of the pool creation process.
Unlike single-sided pools, constant product pools follow the x*y=k formula and don’t require initial deposits - they will be initialized on the first liquidity addition.
state
- Application state containing database and settlement manager handles.payload
- JSON body containing the pool creation parameters.202 Accepted
with a request ID if the process is initiated successfully.400 Bad Request
if the request is invalid.401 Unauthorized
if authentication fails.500 Internal Server Error
if an internal error occurs.Returns an [ApiError
] if any step of the process fails.
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Constant product pool creation parameters including fee configuration
Request body for creating a new constant product AMM pool.
This struct contains all the parameters required to initialize a new constant product pool. Unlike single-sided pools, constant product pools don't require initial deposits as they will be initialized on the first liquidity addition.
Pool creation process initiated. Poll status endpoint for updates.
Response for pool creation