API Documentation
Get LP Account Data
GET
/
getLPAccountData
Parameter Description:
jetton0
: The address of the first tokenjetton1
: The address of the second token
Example Request:
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:
Response Field Description:
success
: Whether the request was successfuldata.lpAddress
: The address of the liquidity provider accountdata.token1Address
: The address of the first tokendata.token2Address
: The address of the second tokendata.token1Balance
: The balance of the first token in the accountdata.token2Balance
: The balance of the second token in the accountdata.lpTokenBalance
: The balance of the LP token in the accountdata.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.