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

GetTickSpacing

func GetTickSpacing(poolPath string) (int32, error)
Ask AI Claude ChatGPT

GetTickSpacing returns the tick spacing of the pool. Parameters:

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

Returns:

  • int32: Tick spacing associated with the pool's fee tier.
  • 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.GetTickSpacing()"

Result