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

/pool package

Function

GetProtocolFeesToken0

func GetProtocolFeesToken0(poolPath string) (int64, error)
Ask AI Claude ChatGPT

GetProtocolFeesToken0 returns accumulated protocol fees for token0. Parameters:

  • poolPath: Canonical pool path identifying the pool whose fees are read.

Returns:

  • int64: Accumulated protocol fee for token0, in token base units.
  • error: Non-nil when poolPath does not identify an existing pool.

Param

Command

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

Result

Gno Expression Evaluator

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