API Documentation
Create Liquidity Pool
GET
/
createLiquidityPool
Parameter Description:
jetton0
: The address of the first tokenjetton0SendAmount
: The quantity of the first token providedjetton1
: The address of the second tokenjetton1SendAmount
: The quantity of the second token provided
Example Request:
This request will create a liquidity pool consisting of tokens with addresses 0x1234567890
and 0x0987654321
, with an initial provision of 1000 units of the first token and 500 units of the second token.
Successful Response:
Response Field Description:
success
: Whether the request was successfuldata.poolAddress
: The address of the created liquidity pooldata.token1Address
: The address of the first tokendata.token2Address
: The address of the second tokendata.token1Amount
: The quantity of the first token provideddata.token2Amount
: The quantity of the second token provided
By calling this API endpoint and providing the necessary parameters, you can create a new liquidity pool on the ONTON Finance platform. After the liquidity pool is created, users can provide liquidity and perform token swaps within the pool.