GET
/
getLPAccountData

Parameter Description:

  • jetton0: The address of the first token
  • jetton1: The address of the second token

Example Request:

GET /getLPAccountData?jetton0=0x1234567890&jetton1=0x0987654321

This request will retrieve the liquidity provider account data for the current user in the liquidity pool composed of the token with the address 0x1234567890 and the token with the address 0x0987654321.

Successful Response:

{
  "success": true,
  "data": {
    "lpAddress": "0x1234567890abcdef",
    "token1Address": "0x1234567890",
    "token2Address": "0x0987654321",
    "token1Balance": 500,
    "token2Balance": 250,
    "lpTokenBalance": 1000,
    "sharePercentage": 0.05
  }
}

Response Field Description:

  • success: Whether the request was successful
  • data.lpAddress: The address of the liquidity provider account
  • data.token1Address: The address of the first token
  • data.token2Address: The address of the second token
  • data.token1Balance: The balance of the first token in the account
  • data.token2Balance: The balance of the second token in the account
  • data.lpTokenBalance: The balance of the LP token in the account
  • data.sharePercentage: The percentage of shares in the liquidity pool

By calling this API endpoint and providing the addresses of the two tokens in the liquidity pool, you can retrieve the account data for the current user in the liquidity pool, including the balances of the provided tokens, the balance of the LP token, and the percentage of shares in the pool. This data can help users understand their position and profit situation in the liquidity pool.

Query Parameters

jetton0
string
required
jetton1
string
required