@gala-chain/chaincode ∙ API
API > getLiquidity
Function: getLiquidity()
getLiquidity(
ctx
,dto
):Promise
\<GetLiquidityResDto
>
Parameters
▪ ctx: GalaChainContext
GalaChainContext – The execution context providing access to the GalaChain environment.
▪ dto: GetPoolDto
GetPoolDto – A data transfer object containing: - Pool identifiers – Class keys or token details required to identify the pool.
Returns
string
Dev
The liquidity function retrieves the total available liquidity for a specific Uniswap V3 pool within the GalaChain ecosystem.