Skip to content

@gala-chain/chaincodeAPI


API > getPositions

Function: getPositions()

getPositions(ctx, dto): Promise\<positionInfoDto>

Parameters

ctx: GalaChainContext

GalaChainContext – The execution context providing access to the GalaChain environment.

dto: GetPositionDto

GetPositionDto - A data transfer object containing: - Pool identifiers – Class keys or token details required to identify the pool. - Positions identifier - lower tick, upper tick.

Returns

positionInfoDto

Dev

The positions function retrieves details of a specific liquidity position within a Uniswap V3 pool on the GalaChain ecosystem. It provides insights into the user's position, including token amounts, fees, and other state variables.

Source

chaincode/src/dex/getFunctions.ts:95