API Documentation
Get Pool Data
GET
/
getPoolData
Parameter Explanation:
jetton0
: The address of the first tokenjetton1
: The address of the second token
Example Request:
This request will retrieve data for a pool composed of tokens with addresses EQBTcytZjdZwFLj6TO7CeGvn4aMmqXvbX-nODiApbd011gT3
and EQAR7L4ntuBUMY0KYAApsqRLD5CePfY0gtM14l6hOLvneBel
.
Successful Response:
Response Field Explanation:
reserve0
andreserve1
: The current reserves of token0 and token1 in the pool.K
: The constant product of the reserves, used to maintain pool equilibrium.token0WalletAddress
andtoken1WalletAddress
: Addresses of the wallets holding the tokens.lpFee
,protocolFee
,refFee
: The fees associated with liquidity provision, protocol operations, and referrals.protocolFeeAddress
: Address where protocol fees are collected; “N/A” if not applicable.collectedToken0ProtocolFee
andcollectedToken1ProtocolFee
: Fees collected in token0 and token1 for the protocol.
By calling this API endpoint and providing the necessary parameters, you can retrieve data for an existing liquidity pool on the ONTON Finance platform. This enables you to understand the current state of the pool, including reserves, fees, and wallet addresses.