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

/position package

Function

IsInRange

func IsInRange(positionId uint64) (bool, error)
Ask AI Claude ChatGPT

IsInRange reports whether a position's ticks contain the current pool tick.

Parameters:

  • positionId: position NFT token ID

Returns:

  • inRange: whether the position is currently in range
  • err: non-nil when positionId cannot be resolved or the associated pool tick cannot be read

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/gnoswap/position.IsInRange()"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/gnoswap/position, for example a function call with arguments.