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.

/r/nym-moultest123/demo/hello/v0

Directory · 4 Files
README.md Open

gno.land/r/nym-moultest123/demo/hello

Step 1 of the r/moul/demo walkthrough: the smallest realm that can be deployed and called.

1func Hello() string { return "Hello World!" }
2func privateMethod() string { return "I'm private" }   // not callable

The point is the capitalization rule. Hello is exported, so it is part of the realm's transaction surface and can be called with gnokey maketx call. privateMethod is not exported, so nothing outside the package can reach it, on chain or off.

1gnokey maketx call -pkgpath gno.land/r/nym-moultest123/demo/hello \
2  -func Hello -gas-fee 20000ugnot -gas-wanted 2000000 -broadcast moul

Next: args adds a parameter.


Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.

On mainnet: deployment status transactions unique callers deployed revision

⚠️ Disclaimer: provided as-is, without warranty; not security-audited. Full disclaimer: DISCLAIMER.