GET
/
getPoolData

Parameter Explanation:

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

Example Request:

GET https://api.onton.finance/getPoolData?jetton0=EQBTcytZjdZwFLj6TO7CeGvn4aMmqXvbX-nODiApbd011gT3&jetton1=EQAR7L4ntuBUMY0KYAApsqRLD5CePfY0gtM14l6hOLvneBel

This request will retrieve data for a pool composed of tokens with addresses EQBTcytZjdZwFLj6TO7CeGvn4aMmqXvbX-nODiApbd011gT3 and EQAR7L4ntuBUMY0KYAApsqRLD5CePfY0gtM14l6hOLvneBel.

Successful Response:

{
  "reserve0": 766.019709954,
  "reserve1": 298.792047881,
  "K": "228880.597854365",
  "token0WalletAddress": "0:e1ee6d07482f5dd1f2fa96a9de273fa1c94d08f57bd3a438ffe37a84b8678e93",
  "token1WalletAddress": "0:bd967836b8cc52cfd3bdec2b3117e241c80b2fdd1c671ccdbfbdf7a4da3d32c9",
  "lpFee": 2e-8,
  "protocolFee": 1e-8,
  "refFee": 1e-8,
  "protocolFeeAddress": "N/A",
  "collectedToken0ProtocolFee": 0.038283069,
  "collectedToken1ProtocolFee": 0.70481295
}

Response Field Explanation:

  • reserve0 and reserve1: The current reserves of token0 and token1 in the pool.
  • K: The constant product of the reserves, used to maintain pool equilibrium.
  • token0WalletAddress and token1WalletAddress: 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 and collectedToken1ProtocolFee: 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.

Query Parameters

jetton0
string
required
jetton1
string
required