API Documentation
Provide Liquidity
GET
/
provideLiquidity
Parameter Explanation:
jetton0
: The address of the first tokenjetton0SendAmount
: The quantity of the first token to be providedjetton1
: The address of the second tokenjetton1SendAmount
: The quantity of the second token to be provided
Sample Request:
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:
Response Field Explanation:
success
: Whether the request was successfuldata.poolAddress
: The address of the 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 provideddata.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.