@gala-chain/chaincode ∙ API
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.