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

GetPoolPositions

func GetPoolPositions(poolPath string) *rotree.ReadOnlyTree

GetPoolPositions returns a read-only view of a pool's positions, keyed by position key. nil is returned when the pool does not exist. Parameters:

  • poolPath: Canonical pool path identifying the pool whose positions are read.

Returns:

  • *rotree.ReadOnlyTree: Read-only tree keyed by position key; nil when the pool does not exist.

Param

Command

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

Result