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

GetBalanceToken0

func GetBalanceToken0(poolPath string) (int64, error)

GetBalanceToken0 returns the balance of token0 in the pool. Parameters:

  • poolPath: Canonical pool path identifying the pool to query.

Returns:

  • int64: Current token0 balance held by the pool, in token base units.
  • error: Non-nil when poolPath does not identify an existing pool.

Param

Command

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

Result