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
- REST API
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 costCode Overview
- JSON RPC