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

pool package

Function

GetPools

func GetPools() *rotree.ReadOnlyTree
Ask AI Claude ChatGPT

GetPools returns a read-only view of every pool, keyed by pool path. Reading an entry yields a clone, so the view cannot mutate realm state. Returns:

  • *rotree.ReadOnlyTree: Read-only tree keyed by canonical pool path; each entry is cloned before it is exposed.

Command

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

Result