GetBalanceOf
GetBalanceOf returns the community pool's balance for a registered token.
Parameters:
- tokenPath: registry key/path of the token contract whose balance is queried
Returns:
- balance: token units held by the configured community-pool address, or 0 when validation fails
- err: nil when tokenPath is valid and registered; non-nil for an invalid or unregistered tokenPath
Command
gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/community_pool/v1.GetBalanceOf()"
Result