# Token Faucet
> ⚠️ **Experimental — generated with no human supervision.** This realm was
> produced automatically by an MCP-driven agent to exercise the gno MCP server
> and tooling, and to generate test content for gno compilers, linters and
> formatters. **Not audited. Not for production.** Full context & folder README:
> [r/moul/x/daily](https://github.com/moul/gno-contracts/blob/main/r/moul/x/daily/README.md)
---
A toy points faucet realm for the gno.land sapphire testnet. Any caller can
`Claim` 100 points, but only once every 100 blocks per address — the cooldown is
enforced deterministically via `runtime.ChainHeight()`. Per-caller balances and
last-claim heights are stored in an `avl.Tree`, and `Render` shows the total
distributed, total claim count, and a table of all claimers with their balances.
## Realm path
```
gno.land/r/REPLACE_ADDR/faucet
```
(`REPLACE_ADDR` is replaced with the deploy address at deploy time.)
## Example calls
```sh
# Claim 100 points (subject to the 100-block cooldown).
gnokey maketx call -pkgpath "gno.land/r/REPLACE_ADDR/faucet" \
-func Claim -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast \
-chainid sapphire-1 mykey
# Query a balance (read-only).
gnokey query "vm/qeval" -data \
'gno.land/r/REPLACE_ADDR/faucet.BalanceOf("g1...youraddr")'
# View the dashboard.
gnokey query "vm/qrender" -data 'gno.land/r/REPLACE_ADDR/faucet:'
```
## Behavior
- `Claim(cur realm)` — grants `ClaimAmount` (100) points to the caller; aborts if
the caller's previous claim was less than `CooldownBlocks` (100) blocks ago.
- `BalanceOf(addr string) int64` — current balance for an address (0 if unknown).
- `Render(path string) string` — Markdown dashboard: stats + claimer table.
<!-- BEGIN GNOCONTRACTS FOOTER (generated by `make readmes`; do not edit below) -->
---
Part of **[moul/gno-contracts](https://github.com/moul/gno-contracts)** — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.
**Dependency graph:**

> 🧪 **Highly experimental — potentially vibe-coded.** Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: [DISCLAIMER](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md).
<!-- END GNOCONTRACTS FOOTER -->
BalanceOf(addr string) int64
Claim(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string})
Render(path string) string
Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.
vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.