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.

gnomic package

Overview

Parametric GRC20 realm for gno.land.

All configuration (name, symbol, decimals, supply, metadata) lives in config.gno. This file holds only the logic, which is not meant to be edited.

The realm:

  • creates a GRC20 token through gno.land/p/nt/grc20/v0
  • registers it with gno.land/r/nt/grc20reg/v0 (required to be discoverable by GnoSwap, wallets and explorers)
  • mints the initial supply to the deploying address
  • exposes the GRC20 methods as top-level functions callable via MsgCall
  • enforces a hard ceiling (maxSupply) on minting
  • lets the owner give up minting forever (DropOwnership)

Function

TokenKey

func TokenKey() string
Ask AI Claude ChatGPT

TokenKey returns the token's key in the GRC20 registry ("<pkgpath>.<SYMBOL>"), to be used with r/nt/grc20reg and with GnoSwap.

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/nym-thegnomic001/gnomic.TokenKey()"

Result