GET
/
createLiquidityPool

Parameter Description:

  • jetton0: The address of the first token
  • jetton0SendAmount: The quantity of the first token provided
  • jetton1: The address of the second token
  • jetton1SendAmount: The quantity of the second token provided

Example Request:

GET /createLiquidityPool?jetton0=0x1234567890&jetton0SendAmount=1000&jetton1=0x0987654321&jetton1SendAmount=500

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:

{
  "success": true,
  "data": {
    "poolAddress": "0x1234567890abcdef",
    "token1Address": "0x1234567890",
    "token2Address": "0x0987654321",
    "token1Amount": 1000,
    "token2Amount": 500
  }
}

Response Field Description:

  • success: Whether the request was successful
  • data.poolAddress: The address of the created liquidity pool
  • data.token1Address: The address of the first token
  • data.token2Address: The address of the second token
  • data.token1Amount: The quantity of the first token provided
  • data.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.

Query Parameters

jetton0
string
required
jetton0SendAmount
number
required
jetton1
string
required
jetton1SendAmount
number
required