Skip to main content
Below are the common methods to get the current liquidity reserves:
Getting the reserves data for a liquidity pool using SaucerSwapโ€™s REST API is also a suitable alternative. For more information, see Get liquidity pool reserves (V1). The pool metadata includes the reserve data.
To track updates to liquidity pool reserves in near real-time, see Track LP updates (V1).

Get Pool Reserves via REST API

Fetch all HTS token balances for a pool via Mirror Nodeโ€™s REST API.

Code Overview

Resources:
Typescript

Get Pool Reserves via JSON RPC

Fetch all HTS token balances for a pool using the getReserves() solidity function via Mirror Nodeโ€™s JSON RPC Relay. Function name: getReserves โ›ฝ No gas cost

Code Overview

Resources:
Typescript