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 — read-only call.
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:

Next steps

New liquidity position (V2)

Mint a position once the pool is confirmed.

Fetch all pools (V2)

List every V2 pool from the REST API.