@gala-chain/chaincode ∙ API
API > getPositionWithNftId
Function: getPositionWithNftId()
getPositionWithNftId(
ctx
,dto
):Promise
\<PositionData
>
Parameters
▪ ctx: GalaChainContext
GalaChainContext – The execution context providing access to the GalaChain environment.
▪ dto: GetPositionWithNftIdDto
GetPositionDto - A data transfer object containing: - Pool identifiers – Class keys or token details required to identify the pool. - NFT identifier - unique NFT that identifies a position in a pool
Returns
PositionData
Dev
The positions function retrieves details of a specific liquidity position within the Dex pool on the GalaChain ecosystem. It provides insights into the user's position, including token amounts, fees, and other state variables.