Skip to main content
Checking if the liquidity pool with the matching fee tier exists using SaucerSwapโ€™s REST API is also a suitable alternative. For more information, see Get all Liquidity Pools (V2).

Function name: getPool โ›ฝ No gas cost
When working with HBAR, use the WHBAR (Wrapped HBAR) token address for either tokenA or tokenB.
The ordering of tokens for token0 and token1 does not matter.
If the pool does not exist, a zero address will be returned.

Code Overview

Resources:
Typescript