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. It manages balances, total supply, and the gov/staker-authorized mint and burn operations used by delegation and launchpad accounting.

xGNS does not maintain a separate voting-power ledger. Governance and gov/staker read xGNS balances and supply, then apply delegation history and proposal rules outside this package.

Function

BalanceOf

func BalanceOf(owner address) int64

BalanceOf returns token balance for address.

Parameters:

  • owner: address to check balance for

Returns:

  • balance: token balance amount

Param

Command

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

Result