Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

/pool package

Function

GetPositionLiquidity

func GetPositionLiquidity(poolPath, key string) (string, error)
Ask AI Claude ChatGPT

GetPositionLiquidity returns the liquidity of a position. Parameters:

  • poolPath: Canonical pool path identifying the pool containing the position.
  • key: Position key identifying the position within the pool.

Returns:

  • string: Position liquidity, serialized as a base-10 unsigned integer.
  • error: Non-nil when the pool or position key cannot be found.

Params

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/gnoswap/pool.GetPositionLiquidity(,)"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/gnoswap/pool, for example a function call with arguments.