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

GetTickInfo

func GetTickInfo(poolPath string, tick int32) (TickInfo, error)

GetTickInfo returns the tick info for a given tick. Parameters:

  • poolPath: Canonical pool path identifying the pool containing the tick.
  • tick: Tick index whose complete state is requested.

Returns:

  • TickInfo: Safe copy of the requested tick's liquidity and oracle/fee accumulator fields.
  • error: Non-nil when the pool or tick is not found.

Params

Command

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

Result