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

xgns package

Overview

Package xgns implements the GRC20-compliant xGNS token that represents staked GNS tokens. It manages minting/burning operations and tracks voting power for governance.

Function

BalanceOf

func BalanceOf(owner address) int64

BalanceOf returns token balance for address.

Parameters:

  • owner: address to check balance for

Returns balance amount.

Param

Command

gnokey query vm/qeval -remote "https://rpc.topaz.testnets.gno.land" -data "gno.land/r/gnoswap/gov/xgns.BalanceOf()"

Result