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

GetUnclaimedFee

func GetUnclaimedFee(positionId uint64) (string, string, error)
Ask AI Claude ChatGPT

GetUnclaimedFee returns the unclaimed fees for both tokens of a position as decimal strings.

Parameters:

  • positionId: position NFT token ID whose unclaimed fees are queried

Returns:

  • fee0: unclaimed token0 fee amount, represented as a decimal string
  • fee1: unclaimed token1 fee amount, represented as a decimal string
  • err: non-nil when positionId or the associated pool fee-growth data cannot be resolved

Param

Command

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

Result

Gno Expression Evaluator

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