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.

reader package

Overview

Package reader is the batch JSON read API for the frontend and the aggregator (design §2.5.6). It is private (re-deployable in place, no other realm may import it) and holds no state or money: everything comes from core, market and r/sys/users.

Every string goes out through safe.JSONWriter, so stored text can never forge a record (RA H-1: the old TSV reader split on tabs and newlines). Art is never batched: one token per Art call, because SVG rendering is what exhausted the query gas in nftread1 (RA L-9).

Functions

Art

func Art(cid, tid string) string
Ask AI Claude ChatGPT

Art is one token's data URI (placeholder before Final).

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g19dzk54hhsdc3gllpksuj6gu4a3e6fl8cr6rn4w/minhwa2/reader.Art(,)"

Result

Cards

func Cards(cid string, offset, limit int64) string
Ask AI Claude ChatGPT

Cards is one gallery page: [{tid, owner, ownerName, traits, listing}] for tokens offset+1 … offset+limit. Burned tokens are skipped; listing is {id, price} or null.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g19dzk54hhsdc3gllpksuj6gu4a3e6fl8cr6rn4w/minhwa2/reader.Cards(,,)"

Result

Collections

func Collections(offset, limit int64) string
Ask AI Claude ChatGPT

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g19dzk54hhsdc3gllpksuj6gu4a3e6fl8cr6rn4w/minhwa2/reader.Collections(,)"

Result

Profile

func Profile(addr address) string
Ask AI Claude ChatGPT

Profile is {address, name, collections, listings} for one address.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g19dzk54hhsdc3gllpksuj6gu4a3e6fl8cr6rn4w/minhwa2/reader.Profile()"

Result

StudioTraits

func StudioTraits(engineID, params string, from, n int64) string
Ask AI Claude ChatGPT

StudioTraits is TraitCounts for an engine and params over n sample seeds (engine.SampleSeed(from) …), for the Studio's rarity preview.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g19dzk54hhsdc3gllpksuj6gu4a3e6fl8cr6rn4w/minhwa2/reader.StudioTraits(,,,)"

Result

TraitCounts

func TraitCounts(cid string, offset, limit int64) string
Ask AI Claude ChatGPT

TraitCounts counts trait values over tokens offset+1 … offset+limit: {"n": tokens counted, "counts": {type: {value: count}}}. Rarity % for a 1000-token collection takes two calls. Before Final every token reports Status=Unrevealed.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g19dzk54hhsdc3gllpksuj6gu4a3e6fl8cr6rn4w/minhwa2/reader.TraitCounts(,,)"

Result