Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

nsview/v2 package

Overview

Package nsview is the human-facing view — the third realm in the split, and the newest (2026-08-21).

It exists because an adversarial review found three defects in the old Render(), which lived inside the permanent `nsdata` vault: unescaped profile text injected into the page markdown, an O(domains × names) home page any user could inflate into a permanent denial of service, and navigation links that 404'd. All three were display bugs, and none of them could ever have been fixed, because that realm is deployed exactly once. The NFT artwork moved here for the same reason.

Display code is swappable now. This realm holds no state, reads everything from nsdata's exported API, and can be redeployed and re-pointed at any time with nothing to migrate.

Function

BuildSVG

func BuildSVG(tid string) string

BuildSVG renders a token. Everything on the card derives from four stored values — owner, registered, expires, and the domain's drawing — so a renewal moves `expires` and the bar, the time remaining and the years held all follow from it. Nothing is baked at mint: the card is generated on every read, which is what lets a domain's artwork be changed after its names have been sold.

Param

Command

gnokey query vm/qeval -remote "https://rpc.pearl.testnets.gno.land" -data "gno.land/r/g1xr6tgxnpled50h74eafmvxway7z0ytr5rsmeme/nsview/v2.BuildSVG()"

Result