Skip to content

@gala-chain/chaincodeAPI


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.

Source

chaincode/src/dex/getFunctions.ts:81