Skip to content

@gala-chain/chaincodeAPI


API > getPoolData

Function: getPoolData()

getPoolData(ctx, dto): Promise\<Pool | undefined>

Parameters

ctx: GalaChainContext

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

dto: GetPoolDto

GetPoolDto – A data transfer object containing: - Class keys for the tokens – Identifiers for the token pair in the pool.

Returns

Pool

Dev

The getPoolData function retrieves and returns all publicly available state information of a Uniswap V3 pool within the GalaChain ecosystem. It provides insights into the pool's tick map, liquidity positions, and other essential details.

Source

chaincode/src/dex/getFunctions.ts:47