Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

pool package

Function

GetLiquidity

func GetLiquidity(poolPath string) (string, error)

GetLiquidity returns the current liquidity in the pool. Parameters:

  • poolPath: Canonical pool path identifying the pool whose liquidity is read.

Returns:

  • string: Current pool liquidity, serialized as a base-10 unsigned integer.
  • error: Non-nil when poolPath does not identify an existing pool.

Param

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/pool.GetLiquidity()"

Result