Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

namereg/v0 package

Function

ValidateNymFormat

func ValidateNymFormat(username string) error
Ask AI Claude ChatGPT

ValidateNymFormat checks the regex, prefix-exclusion, and reserved- name rules in that order. Returns one of the exported sentinel errors per failure mode, or nil on success.

Does NOT run the canonical-collision check — that lives in r/sys/users (susers.IsCanonicalTaken or, atomically with the write, inside susers.RegisterUser).

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/sys/namereg/v0.ValidateNymFormat()"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/sys/namereg/v0, for example a function call with arguments.