Count
Count returns how many greetings have been recorded. Read-only.
Command
gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/moul/hello/v1.Count()"
Result
Package hello is a canary realm: it proves the end-to-end pipeline (workspace resolution of a versioned local dependency, gno test, gno lint, and CI) works from the very first commit. It has no external dependencies. Remove it once real realms land.
Count returns how many greetings have been recorded. Read-only.
gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/moul/hello/v1.Count()"
Greet records a greeting from the caller and returns it. Crossing function: it mutates persistent state, so it takes `cur realm` per the gno 0.9 interrealm convention.
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/moul/hello/v1" -func "Greet" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "pearl-1" -remote "https://rpc.pearl.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.pearl.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/moul/hello/v1" -func "Greet" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "pearl-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.pearl.testnets.gno.land" call.tx
Render is the gnoweb Markdown view.
gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/moul/hello/v1.Render()"