GET
/
provideLiquidity

Parameter Explanation:

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

Sample Request:

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

This request will provide liquidity to the pool composed of tokens with addresses 0x1234567890 and 0x0987654321, providing 500 units of the first token and 1000 units of the second token.

Successful Response:

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

Response Field Explanation:

  • success: Whether the request was successful
  • data.poolAddress: The address of the 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
  • data.liquidityTokensReceived: The number of liquidity tokens received

By calling this API endpoint and providing the necessary parameters, you can provide liquidity to an existing liquidity pool on the ONTON Finance platform. After providing liquidity, you will receive the corresponding number of liquidity tokens, representing your share in the pool. You can use these liquidity tokens to redeem the tokens you provided and the trading fee share you earned at any time.

Query Parameters

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