Len
Ask AI
Len returns the number of messages currently stored.
Command
gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nym-moultest123/x/daily/ringlog/v0.Len()"
Result
Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.
Package ringlog is an on-chain port of Go's container/ring: a fixed-capacity circular message board where new posts overwrite the oldest entries once full.
Len returns the number of messages currently stored.
gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nym-moultest123/x/daily/ringlog/v0.Len()"
Post adds a message to the ring buffer. Once Cap entries are stored, the oldest entry is overwritten.
gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nym-moultest123/x/daily/ringlog/v0.Post()"
Render displays the ring buffer as a Markdown page.
gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nym-moultest123/x/daily/ringlog/v0.Render()"
Entries returns all stored messages in chronological order (oldest first).
gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nym-moultest123/x/daily/ringlog/v0.Entries()"