Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

grc20faucet/v0 package

Overview

Package grc20faucet issues two free GRC20 tokens, RED and BLUE, and gives them away on request.

It exists so that anything needing a token to experiment on has one that is worthless, unlimited and shared. Both tokens are registered in gno.land/r/nt/grc20reg/v0, which is what lets another realm find and move them by key without importing this package: that indirection is the whole point, and it is what gno.land/r/moul/x/grc20wrapdemo/v0 wraps.

Two tokens rather than one, because the interesting patterns start at two: a meta-token over a pair needs a pair.

Function

BalanceOf

func BalanceOf(symbol string, owner address) int64
Ask AI Claude ChatGPT

BalanceOf returns `owner`'s balance of `symbol`.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1magld5ptgzaktqcexxq0pgq5lmdf0kz6re8hlv/x/grc20faucet/v0.BalanceOf(,)"

Result