v1 package

Function

Register

func Register(username string)

Register registers a new username for the caller. A valid username must start with a minimum of 3 letters, end with a minimum of 3 numbers, and be less than 20 chars long. All letters must be lowercase, and the only valid special char is \`\_\`. Only calls from EOAs are supported.

Param

Warning

This transaction link is requesting 1000000ugnot from your balance. For your safety, you must manually confirm the addition of coins to the transaction.

Command

gnokey query -remote "https://rpc.dev.gnodevx.network" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoland/users/v1" -func "Register"  -args "" -gas-fee 1000000ugnot -gas-wanted 5000000 -send "" ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "devx" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.dev.gnodevx.network" call.tx