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.

quotes/v0 package

Overview

Package quotes is a community "Quote of the Moment" board realm.

Anyone can submit a quote via the exported crossing function AddQuote. Each quote records its text, the address of the caller who added it, and the block height at submission time. Render deterministically picks a "featured" quote by the current block height (a stable index into the list), shows it as a blockquote, then lists every quote with its author and id below.

Function

AddQuote

func AddQuote(cur realm, text string)
Ask AI Claude ChatGPT

AddQuote is the exported, state-mutating entry point. It follows the gno 0.9 interrealm crossing convention: the first parameter is `cur realm`. Callers invoke it as AddQuote(cross(cur), "...") over a MsgCall.

Param

Command

# 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/g1magld5ptgzaktqcexxq0pgq5lmdf0kz6re8hlv/x/daily/quotes/v0" -func "AddQuote" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1magld5ptgzaktqcexxq0pgq5lmdf0kz6re8hlv/x/daily/quotes/v0" -func "AddQuote" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx