Stats
Stats returns (totalWords, prefixCount) for the current corpus.
Command
gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/markovdemo/v0.Stats()"
Result
Package markovdemo is a small on-chain demo of the Markov-chain text generator provided by the p/moul/x/daily/markov(/p/moul/x/daily/markov/v0) library.
It holds a single package-level markov.Chain as the corpus and wires it to the chain: Feed appends words to that persistent chain (a crossing function, since it mutates on-chain state), while Generate and Render walk it with a seed derived from runtime.ChainHeight() — so babbling is a pure, reproducible query that still varies block to block. It contains no Markov logic of its own — build/walk math all lives in the library.
Stats returns (totalWords, prefixCount) for the current corpus.
gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/markovdemo/v0.Stats()"