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.

faucet/v0 package

Overview

Package faucet is a toy points faucet realm for the gno.land sapphire testnet.

Any caller may Claim() 100 points, but only once per cooldown window of 100 blocks. Cooldown is enforced deterministically via runtime.ChainHeight() — no real clocks, no RNG. Per-caller balance and last-claim height live in an avl.Tree so Render iterates in deterministic (address-sorted) order.

Function

BalanceOf

func BalanceOf(addr string) int64
Ask AI Claude ChatGPT

BalanceOf returns the current point balance of addr (0 if never claimed).

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nym-moultest123/x/daily/faucet/v0.BalanceOf()"

Result