@gala-chain/chaincode ∙ API
API > getUserPositions
Function: getUserPositions()
getUserPositions(
ctx
,dto
):Promise
\<GetUserPositionsResDto
>
Parameters
▪ ctx: GalaChainContext
GalaChainContext – The execution context providing access to the GalaChain environment.
▪ dto: GetUserPositionsDto
GetUserPositionsDto – A data transfer object containing: - User address – The identifier for the user whose positions are being queried.
Returns
GetUserPositionsResDto
Dev
The getUserPositions function retrieves all liquidity positions owned by a specific user across multiple Uniswap V3 pools within the GalaChain ecosystem. It provides details on the user's staked liquidity and associated rewards.