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

GetToken0Path

func GetToken0Path(poolPath string) (string, error)
Ask AI Claude ChatGPT

GetToken0Path returns the path of token0 in the pool. Parameters:

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

Returns:

  • string: Canonical token0 contract path stored by the pool.
  • error: Non-nil when poolPath does not identify an existing pool.

Param

Command

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

Result