Liquidity Operations
Get Pool Reserves
Get current reserves for one or many pools
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
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