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.

profiles/v0 package

Overview

Package profiles keeps the Gnoslinger players' records (games played, victory points) and their ranking apart from the game realm, so a new version of the game (new rules) keeps the scores. Only the game realms on the allowlist may write; the admin, the deployer, manages that list.

Function

ProfileJSON

func ProfileJSON(addr string) string
Ask AI Claude ChatGPT

ProfileJSON is the profile of an address, or null when it has none yet:

Example
1{"addr","name","rank","gamesPlayed","victoryPoints","createdAt"}

name is the address's name in gno.land/r/sys/users, "" if none.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1th0masp67zfs9lg6d34qhghldhg6kjcqjuv7c2/gnoslinger/profiles/v0.ProfileJSON()"

Result