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

GetSlot0SqrtPriceX96

func GetSlot0SqrtPriceX96(poolPath string) (string, error)

GetSlot0SqrtPriceX96 returns the current sqrt price from slot0. Parameters:

  • poolPath: Canonical pool path identifying the pool to query.

Returns:

  • string: Current square-root price in Q64.96 fixed-point form, 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.GetSlot0SqrtPriceX96()"

Result