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.

game33 package

Functions

ActivateGnomePass

func ActivateGnomePass(cur realm, durationDays int64)
Ask AI Claude ChatGPT

ActivateGnomePass buys durationDays (30..360, multiple of 30) of Gnome Pass. The tx must attach exactly passPrice × durationDays/30 ugnot (MsgCall send).

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "ActivateGnomePass" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "ActivateGnomePass" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

AddGnotLiquidity

func AddGnotLiquidity(cur realm, coin string, coinMax uint64, gnotMax uint64, minShares uint64, deadline int64) uint64
Ask AI Claude ChatGPT

AddGnotLiquidity deposits up to coinMax of `coin` and gnotMax internal GNOT. Follows the current pool ratio. Reverts unless at least minShares are minted.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "AddGnotLiquidity" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "AddGnotLiquidity" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

AddLiquidity

func AddLiquidity(cur realm, coin string, coinMax uint64, grinMax uint64, minShares uint64, deadline int64) uint64
Ask AI Claude ChatGPT

AddLiquidity deposits up to coinMax of `coin` and grinMax grin. The first deposit sets the price (open economy: any ratio) and burns minLiquidity shares; later deposits take the current ratio (never more than either cap). Reverts unless at least minShares are minted.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "AddLiquidity" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "AddLiquidity" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

Admin

func Admin() string
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.Admin()"

Result

AllBalances

func AllBalances(playerAddr string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.AllBalances()"

Result

AllMiners

func AllMiners(limit int, offset int) string
Ask AI Claude ChatGPT

AllMiners returns the leaderboard sorted by total mined (desc), paginated. (game28 returned it in address order.)

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.AllMiners(,)"

Result

BanAddress

func BanAddress(cur realm, targetAddr string, reason string, durationSecs int64)
Ask AI Claude ChatGPT

BanAddress bans a player address. durationSecs=0 means permanent.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "BanAddress" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "BanAddress" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

BatchClaimAchievements

func BatchClaimAchievements(cur realm, idsJson string, nonce int64, expiry int64, sigHex string) int
Ask AI Claude ChatGPT

BatchClaimAchievements claims several ids (already-claimed / not-earned ids are skipped). idsJson must be exactly the voucher payload.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "BatchClaimAchievements" -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "BatchClaimAchievements" -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

BlacklistStatus

func BlacklistStatus(addr string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.BlacklistStatus()"

Result

BookDepth

func BookDepth(pay string, get string, limit int, offset int) string
Ask AI Claude ChatGPT

BookDepth lists asks for a taker who pays `pay` and gets `get`, best price first (≤ 50 rows; offset < maxSideOrders).

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.BookDepth(,,,)"

Result

BuyTool

func BuyTool(cur realm, toolId string)
Ask AI Claude ChatGPT

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "BuyTool" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "BuyTool" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

CancelOrder

func CancelOrder(cur realm, id uint64)
Ask AI Claude ChatGPT

CancelOrder: the maker gets the remaining escrow back. Works while paused and for banned makers; only the maker can cancel.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CancelOrder" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CancelOrder" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

CancelPvpLobby

func CancelPvpLobby(cur realm, lobbyId string)
Ask AI Claude ChatGPT

CancelPvpLobby lets the creator close an open lobby nobody joined (refund). Works while paused: a refund of the player's own escrow is never blocked.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CancelPvpLobby" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CancelPvpLobby" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

CasinoBet

func CasinoBet(roundId string, addr string) string
Ask AI Claude ChatGPT

CasinoBet returns one player's bet and its on-chain result.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.CasinoBet(,)"

Result

CasinoHistory

func CasinoHistory(_ string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.CasinoHistory()"

Result

CasinoJackpots

func CasinoJackpots(coinId string) string
Ask AI Claude ChatGPT

CasinoJackpots reports the real MAJOR / GRAND pools and how they pay.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.CasinoJackpots()"

Result

CasinoOutcome

func CasinoOutcome(game string, roll uint64) string
Ask AI Claude ChatGPT

CasinoOutcome maps a roll to what landed. For rps the outcome is "win" | "push" | "lose" (see rpsHouseMove for the move shown).

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.CasinoOutcome(,)"

Result

CasinoPool

func CasinoPool(coinId string) string
Ask AI Claude ChatGPT

CasinoPool reports a coin's pool, reservation, max bets and daily counters.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.CasinoPool()"

Result

CasinoRoll

func CasinoRoll(serverSeed, clientSecret, roundId, game string) uint64
Ask AI Claude ChatGPT

CasinoRoll is the on-chain roll: uint32(sha256(s:c:roundId:game)[0:4]) % 100.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.CasinoRoll(,,,)"

Result

CasinoRound

func CasinoRound(roundId string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.CasinoRound()"

Result

CasinoStats

func CasinoStats(coinId string) string
Ask AI Claude ChatGPT

CasinoStats reports a coin's accounting: pool, reserved, jackpots, seeded, staked, paid, the conservation check and per-game rounds/staked/paid.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.CasinoStats()"

Result

ClaimAchievement

func ClaimAchievement(cur realm, achievementId string, nonce int64, expiry int64, sigHex string)
Ask AI Claude ChatGPT

ClaimAchievement claims one allowlisted achievement and credits its fixed reward. Needs a server voucher of kind "ach" with payload = `["<id>"]`.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "ClaimAchievement" -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "ClaimAchievement" -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

ClaimAllowance

func ClaimAllowance(playerAddr string) string
Ask AI Claude ChatGPT

ClaimAllowance returns the current per-rarity allowance for addr.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.ClaimAllowance()"

Result

ClaimAndMint

func ClaimAndMint(cur realm, coinsJson string, nonce int64, expiry int64, sigHex string) string
Ask AI Claude ChatGPT

ClaimAndMint credits mined coins to the caller's on-chain balance. coinsJson: [["coinId","amount"],...]. Requires a server voucher (see VoucherMessage) for exactly this coinsJson, plus the on-chain rate cap for the caller's best tool, the coin allowlist and the vein caps. Returns a JSON object of what was actually credited (after bonuses/veins).

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "ClaimAndMint" -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "ClaimAndMint" -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

ClaimMine

func ClaimMine(cur realm, coinsJson string)
Ask AI Claude ChatGPT

ClaimMine (game27/28 two-step flow) is retired: pending mints are gone.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "ClaimMine" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "ClaimMine" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

ClaimPvpTimeout

func ClaimPvpTimeout(cur realm, lobbyId string)
Ask AI Claude ChatGPT

ClaimPvpTimeout resolves a stuck match after pvpTimeoutSec without action:

  • only one player committed → that player wins;
  • both committed, only one revealed → the revealer wins;
  • otherwise → both refunded.

Any lobby member may call it. Escrow can never stay locked.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "ClaimPvpTimeout" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "ClaimPvpTimeout" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

ClaimSigner

func ClaimSigner() string
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.ClaimSigner()"

Result

CommitCasinoSeed

func CommitCasinoSeed(cur realm, roundId string, player string, seedHash string)
Ask AI Claude ChatGPT

CommitCasinoSeed opens a round for one player with sha256(s). Operator only; a round id can be used once.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CommitCasinoSeed" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CommitCasinoSeed" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

CommitPvpMove

func CommitPvpMove(cur realm, lobbyId string, moveHash string)
Ask AI Claude ChatGPT

CommitPvpMove stores sha256(choice+":"+salt) for the caller. Members only, once per player per lobby, only while the lobby is joined.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CommitPvpMove" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CommitPvpMove" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

CompleteTask

func CompleteTask(cur realm, taskId string)
Ask AI Claude ChatGPT

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CompleteTask" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CompleteTask" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

CompleteTaskFor

func CompleteTaskFor(cur realm, player string, taskId string)
Ask AI Claude ChatGPT

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CompleteTaskFor" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CompleteTaskFor" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

CreateGuild

func CreateGuild(cur realm, name string) string
Ask AI Claude ChatGPT

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CreateGuild" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CreateGuild" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

CreatePool

func CreatePool(cur realm, coin string)
Ask AI Claude ChatGPT

CreatePool opens an empty COIN/GRIN pool (admin, per the launch schedule). It holds nothing until players deposit; the admin can't deposit for anyone, withdraw from it or close it.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CreatePool" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CreatePool" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

CreatePvpLobby

func CreatePvpLobby(cur realm, game string, coinId string, betAmount string) string
Ask AI Claude ChatGPT

CreatePvpLobby escrows the creator's wager and opens a lobby.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CreatePvpLobby" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CreatePvpLobby" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

CreateTask

func CreateTask(cur realm, taskId string, desc string)
Ask AI Claude ChatGPT

Tasks: game28 let anyone mark any task done. In game29 tasks are created and completed for a player only by the operator (server) — no free medals.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CreateTask" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "CreateTask" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

DailyCheckin

func DailyCheckin(cur realm)
Ask AI Claude ChatGPT

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "DailyCheckin" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "DailyCheckin" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

DailyCheckinStatus

func DailyCheckinStatus(playerAddr string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.DailyCheckinStatus()"

Result

DepositGnot

func DepositGnot(cur realm) uint64
Ask AI Claude ChatGPT

DepositGnot wraps the ugnot attached to this MsgCall into the exchange's internal "gnot" balance, enabling the player to trade or provide GNOT liquidity. Attach the desired ugnot amount to the MsgCall as a send value.

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "DepositGnot" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "DepositGnot" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

ExchangeStatus

func ExchangeStatus() string
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.ExchangeStatus()"

Result

ExpireLobbies

func ExpireLobbies(cur realm)
Ask AI Claude ChatGPT

ExpireLobbies is a no-op kept for API compatibility (timeouts are per lobby).

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "ExpireLobbies" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "ExpireLobbies" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

FillOrders

func FillOrders(cur realm, pay string, get string, payAmt uint64, minGet uint64, maxFills int, deadline int64) uint64
Ask AI Claude ChatGPT

FillOrders: spend at most payAmt of `pay` (taker fee included) on the best-priced orders that give `get`; receive at least minGet or revert. ≤ 10 fills and ≤ 20 scanned entries per call.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "FillOrders" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "FillOrders" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

FinalizeMigration

func FinalizeMigration(cur realm)
Ask AI Claude ChatGPT

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "FinalizeMigration" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "FinalizeMigration" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

ForfeitCasinoBet

func ForfeitCasinoBet(cur realm, roundId string)
Ask AI Claude ChatGPT

ForfeitCasinoBet settles a bet as a loss when s was revealed but the player's secret was not within 24 h (only the player could know the result). Anyone.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "ForfeitCasinoBet" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "ForfeitCasinoBet" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

FreeSpinGrant

func FreeSpinGrant(addr string) string
Ask AI Claude ChatGPT

FreeSpinGrant reports a player's open free spins (null when none).

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.FreeSpinGrant()"

Result

GetMedals

func GetMedals(playerAddr string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.GetMedals()"

Result

GnomePassCount

func GnomePassCount() int
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.GnomePassCount()"

Result

GnomePassExpiry

func GnomePassExpiry(addr string) int64
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.GnomePassExpiry()"

Result

GnotBalance

func GnotBalance(addr string) string
Ask AI Claude ChatGPT

GnotBalance returns the caller's internal GNOT balance (deposited ugnot).

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.GnotBalance()"

Result

GnotLpPosition

func GnotLpPosition(coin string, addr string) string
Ask AI Claude ChatGPT

GnotLpPosition shows one GNOT LP position and current withdrawal value.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.GnotLpPosition(,)"

Result

GnotLpPositions

func GnotLpPositions(addr string, limit int, offset int) string
Ask AI Claude ChatGPT

GnotLpPositions lists all GNOT LP positions for an address (paginated).

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.GnotLpPositions(,,)"

Result

GnotPoolInfo

func GnotPoolInfo(coin string) string
Ask AI Claude ChatGPT

GnotPoolInfo returns the state of the COIN/GNOT pool for `coin`.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.GnotPoolInfo()"

Result

GnotPools

func GnotPools(limit int, offset int) string
Ask AI Claude ChatGPT

GnotPools lists COIN/GNOT pools (paginated, ≤ 50 per call).

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.GnotPools(,)"

Result

GuildInfo

func GuildInfo(guildId string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.GuildInfo()"

Result

HasAchievement

func HasAchievement(addr, id string) bool
Ask AI Claude ChatGPT

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.HasAchievement(,)"

Result

HasActivePass

func HasActivePass(addr string) bool
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.HasActivePass()"

Result

IsPaused

func IsPaused() bool
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.IsPaused()"

Result

JackpotPool

func JackpotPool(coinId string) string
Ask AI Claude ChatGPT

JackpotPool reports the GRAND jackpot pool (the casino bankroll is CasinoPool).

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.JackpotPool()"

Result

JoinGuild

func JoinGuild(cur realm, guildId string)
Ask AI Claude ChatGPT

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "JoinGuild" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "JoinGuild" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

JoinPvpLobby

func JoinPvpLobby(cur realm, lobbyId string)
Ask AI Claude ChatGPT

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "JoinPvpLobby" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "JoinPvpLobby" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

LastNonce

func LastNonce(addr string) int64
Ask AI Claude ChatGPT

LastNonce returns the last voucher nonce used by addr (0 if none).

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.LastNonce()"

Result

LastRelayNonce

func LastRelayNonce(addr string) int64
Ask AI Claude ChatGPT

LastRelayNonce returns the last relay nonce used by addr (0 if none). Used by the server to compute the next nonce.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.LastRelayNonce()"

Result

LeaveGuild

func LeaveGuild(cur realm)
Ask AI Claude ChatGPT

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "LeaveGuild" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "LeaveGuild" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

LifetimeMined

func LifetimeMined(playerAddr string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.LifetimeMined()"

Result

ListTasks

func ListTasks(_ string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.ListTasks()"

Result

LpPosition

func LpPosition(coin string, addr string) string
Ask AI Claude ChatGPT

LpPosition shows one position and what it would withdraw right now.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.LpPosition(,)"

Result

LpPositions

func LpPositions(addr string, limit int, offset int) string
Ask AI Claude ChatGPT

LpPositions lists an address's positions (bounded: at most one per pool, paginated by pool order, ≤ 50 pools scanned per call).

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.LpPositions(,,)"

Result

MigrateBatch

func MigrateBatch(cur realm, batchId string, kind string, rowsJson string) int
Ask AI Claude ChatGPT

── Migration (game31 → game32) ──────────────────────────────────────────────

MigrateBatch(batchId, kind, rowsJson) imports one batch. rowsJson is a JSON array of string arrays. Kinds and row shapes:

Example
1balance  [addr, coinId, amount]       → balances (SET, not add)
2lifetime [addr, coinId, amount]       → lifetimeMined (SET) + miners total
3tools    [addr, "t1,t2,..."]          → ownedTools (SET, unknown ids dropped)
4toollife [addr, toolId, life]         → toolLife (SET, clamped to max)
5skill    [addr, skillId, rank]        → skillRanks (SET, clamped to max)
6medal    [addr, achievementId]        → achievements (allowlisted ids only)
7pass     [addr, expiryUnix]           → gnomePasses (SET)
8guild    [guildId, name, leader, "m1,m2,..."] → guilds + members
9ban      [addr, reason, expiryUnix]   → blacklist (expiry 0 = permanent)

A batchId that was already applied is skipped, and every write is a SET, so re-running a whole migration is a no-op. FinalizeMigration locks it forever. Every unique player address in a batch is recorded in migrationAddrs so that MigrationStatus can report how many distinct players were migrated.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "MigrateBatch" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "MigrateBatch" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

MigrationBatch

func MigrationBatch(batchId string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.MigrationBatch()"

Result

MigrationStatus

func MigrationStatus() string
Ask AI Claude ChatGPT

MigrationStatus returns a JSON object with:

  • finalized: bool — true once FinalizeMigration has been called
  • batches: int — number of distinct batch IDs applied
  • addresses: int — number of distinct player addresses migrated across all batches

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.MigrationStatus()"

Result

OpenGnotPool

func OpenGnotPool(cur realm, coin string, coinAmt uint64, gnotAmt uint64, minShares uint64, deadline int64) uint64
Ask AI Claude ChatGPT

OpenGnotPool creates a new COIN/GNOT pool and seeds the first liquidity, atomically setting the opening price. Any player who holds the coin and enough deposited GNOT can call this — no admin required.

coinAmt/gnotAmt set the price ratio; whoever opens the pool first controls the opening price. 1,000 shares are permanently burned as a seed.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "OpenGnotPool" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "OpenGnotPool" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

OpenLobbies

func OpenLobbies() string
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.OpenLobbies()"

Result

OpenPool

func OpenPool(cur realm, coin string, coinAmt uint64, grinAmt uint64, minShares uint64, deadline int64) uint64
Ask AI Claude ChatGPT

OpenPool creates a new COIN/GRIN pool and immediately deposits the first liquidity, atomically setting the opening price. Any player who holds the coin and enough Grin can call this — no admin required.

coinAmt and grinAmt set the price ratio; whoever calls this first for a coin controls the opening price, so choose amounts that reflect the coin's real value. 1,000 shares are permanently burned as a sandwich-resistance seed. Returns the number of LP shares minted for the caller.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "OpenPool" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "OpenPool" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

Operator

func Operator() string
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.Operator()"

Result

Order

func Order(maker string, id uint64) string
Ask AI Claude ChatGPT

Order shows one open order of `maker` (lookups are per maker by design).

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.Order(,)"

Result

OrdersOf

func OrdersOf(addr string) string
Ask AI Claude ChatGPT

OrdersOf lists an address's open orders (≤ 20 by construction).

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.OrdersOf()"

Result

OwnedTools

func OwnedTools(playerAddr string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.OwnedTools()"

Result

PassPrice

func PassPrice() int64
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.PassPrice()"

Result

PassRevenue

func PassRevenue() int64
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.PassRevenue()"

Result

PendingMints

func PendingMints(playerAddr string) string
Ask AI Claude ChatGPT

PendingMints is kept for client compatibility; game29 has no pending step.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.PendingMints()"

Result

PlaceCasinoBet

func PlaceCasinoBet(cur realm, roundId string, game string, coinId string, betAmount string, choice string, clientHash string)
Ask AI Claude ChatGPT

PlaceCasinoBet escrows the player's bet with sha256(c): only the round's player, only before s is revealed, and only if the pool can pay its largest win.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "PlaceCasinoBet" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "PlaceCasinoBet" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

PlaceCasinoFreeSpin

func PlaceCasinoFreeSpin(cur realm, roundId string, clientHash string)
Ask AI Claude ChatGPT

PlaceCasinoFreeSpin uses one free spin of the caller's grant in a committed round (no stake). One free spin in flight at a time.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "PlaceCasinoFreeSpin" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "PlaceCasinoFreeSpin" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

PlaceOrder

func PlaceOrder(cur realm, give string, giveAmt uint64, want string, wantAmt uint64, expirySecs int64) uint64
Ask AI Claude ChatGPT

PlaceOrder escrows giveAmt of `give` and lists it for wantAmt of `want` (any pair). No upfront posting fee — the 0.90% maker fee is deducted from the maker's proceeds at fill time. Returns the order id. expirySecs 0 = 72 h; max 7 days.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "PlaceOrder" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "PlaceOrder" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

PlayerGuild

func PlayerGuild(addr string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.PlayerGuild()"

Result

PlayerProfile

func PlayerProfile(playerAddr string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.PlayerProfile()"

Result

PlayerXp

func PlayerXp(playerAddr string) string
Ask AI Claude ChatGPT

PlayerXp returns the caller's cumulative rarity-weighted XP earned from ClaimAndMint calls as a plain decimal string (e.g. "12345"). Returns "0" for players who have not yet minted anything on this realm version.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.PlayerXp()"

Result

PoolInfo

func PoolInfo(coin string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.PoolInfo()"

Result

Pools

func Pools(limit int, offset int) string
Ask AI Claude ChatGPT

Pools lists pools in coin order (paginated, ≤ 50 per call).

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.Pools(,)"

Result

ProtocolFees

func ProtocolFees(coin string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.ProtocolFees()"

Result

PvpLobby

func PvpLobby(lobbyId string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.PvpLobby()"

Result

QuoteFill

func QuoteFill(caller string, pay string, get string, payAmt uint64, maxFills int) string
Ask AI Claude ChatGPT

QuoteFill previews FillOrders for a budget (fee included): {"spent","got"}.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.QuoteFill(,,,,)"

Result

QuoteGnotSwap

func QuoteGnotSwap(coinIn string, coinOut string, amountIn uint64) string
Ask AI Claude ChatGPT

QuoteGnotSwap quotes a single GNOT-pool swap; "0" if unavailable.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.QuoteGnotSwap(,,)"

Result

QuoteRoute

func QuoteRoute(caller string, coinIn string, coinOut string, amountIn uint64, maxFills int) string
Ask AI Claude ChatGPT

QuoteRoute previews SwapRoute: how much goes to the book vs the pools and the expected output (fees included).

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.QuoteRoute(,,,,)"

Result

QuoteRouteGnot

func QuoteRouteGnot(caller string, coinIn string, coinOut string, amountIn uint64, maxFills int) string
Ask AI Claude ChatGPT

QuoteRouteGnot previews SwapRouteGnot (either side may be "gnot").

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.QuoteRouteGnot(,,,,)"

Result

QuoteSwap

func QuoteSwap(coinIn string, coinOut string, amountIn uint64) string
Ask AI Claude ChatGPT

QuoteSwap quotes a single-pool swap; "0" if the pool can't take it.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.QuoteSwap(,,)"

Result

RefundCasinoBet

func RefundCasinoBet(cur realm, roundId string)
Ask AI Claude ChatGPT

RefundCasinoBet returns the stake only if s was never revealed and 30 minutes have passed since the bet. Never after s is revealed. Works while paused.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RefundCasinoBet" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RefundCasinoBet" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

RegisterVein

func RegisterVein(cur realm, coinId string, maxSupply string)
Ask AI Claude ChatGPT

RegisterVein is the game28 name for SetVeinMax.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RegisterVein" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RegisterVein" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

RelayAddress

func RelayAddress() string
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.RelayAddress()"

Result

RelayBuyTool

func RelayBuyTool(cur realm, player string, toolId string, nonce int64, expiry int64, sigHex string)
Ask AI Claude ChatGPT

RelayBuyTool executes BuyTool logic on behalf of `player` (the relay pays gas). The server must sign a relay voucher with MOJI_CLAIM_SIGNER_SEED:

Example
1gnomoji-relay-v1|<chainId>|BuyTool|<player>|<toolId>|<nonce>|<expiry>

All prerequisites (coin balance, tool chain, existing ownership) are checked the same as BuyTool — the relay cannot bypass them.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RelayBuyTool" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RelayBuyTool" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

RelayTrainSkill

func RelayTrainSkill(cur realm, player string, skillId string, nonce int64, expiry int64, sigHex string)
Ask AI Claude ChatGPT

RelayTrainSkill executes TrainSkill logic on behalf of `player`. Relay voucher message:

Example
1gnomoji-relay-v1|<chainId>|TrainSkill|<player>|<skillId>|<nonce>|<expiry>

Same checks as TrainSkill; max rank and coin deduction apply normally.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RelayTrainSkill" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RelayTrainSkill" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

RemoveGnotLiquidity

func RemoveGnotLiquidity(cur realm, coin string, shares uint64, minCoin uint64, minGnot uint64, deadline int64) (uint64, uint64)
Ask AI Claude ChatGPT

RemoveGnotLiquidity is always available — works while the exchange or pool is paused. Returns (coinOut, gnotOut).

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RemoveGnotLiquidity" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RemoveGnotLiquidity" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

RemoveLiquidity

func RemoveLiquidity(cur realm, coin string, shares uint64, minCoin uint64, minGrin uint64, deadline int64) (uint64, uint64)
Ask AI Claude ChatGPT

RemoveLiquidity is instant and ALWAYS available: it works while the exchange or the pool is paused, before or after a ban, and needs no tool. Nobody but the position owner can call it for that position.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RemoveLiquidity" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RemoveLiquidity" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

Render

func Render(_ string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.Render()"

Result

RepairTool

func RepairTool(cur realm, toolId string)
Ask AI Claude ChatGPT

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RepairTool" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RepairTool" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

RevealCasinoSecret

func RevealCasinoSecret(cur realm, roundId string, clientSecret string)
Ask AI Claude ChatGPT

RevealCasinoSecret publishes the player's secret c (anyone may relay it: it must hash to the bet's hash) and settles the bet on chain. Works while paused.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RevealCasinoSecret" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RevealCasinoSecret" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

RevealCasinoSeed

func RevealCasinoSeed(cur realm, roundId string, serverSeed string)
Ask AI Claude ChatGPT

RevealCasinoSeed publishes s (it must hash to the commit). It settles nothing: the bet settles when the player's secret is revealed.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RevealCasinoSeed" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RevealCasinoSeed" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

RevealPvpMove

func RevealPvpMove(cur realm, lobbyId string, choice string, salt string)
Ask AI Claude ChatGPT

RevealPvpMove reveals a committed move. The tx fails unless sha256(choice+":"+salt) equals the stored commit. A matching reveal of an invalid choice forfeits the match. When both have revealed, it settles.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RevealPvpMove" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "RevealPvpMove" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

Rewarded

func Rewarded(playerAddr string) string
Ask AI Claude ChatGPT

Rewarded returns what rewards (medals etc.) credited, per coin. Separate from LifetimeMined.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.Rewarded()"

Result

SeedCasinoJackpot

func SeedCasinoJackpot(cur realm, coinId, tier, amount string)
Ask AI Claude ChatGPT

SeedCasinoJackpot adds the ADMIN'S OWN coins to a jackpot pool (never withdrawable).

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SeedCasinoJackpot" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SeedCasinoJackpot" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SeedCasinoPool

func SeedCasinoPool(cur realm, coinId string, amount string)
Ask AI Claude ChatGPT

SeedCasinoPool moves the ADMIN'S OWN on-chain coins into a casino pool. Only ever the admin's own balance; nobody can withdraw a pool back.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SeedCasinoPool" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SeedCasinoPool" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SetCasinoJackpotRefBet

func SetCasinoJackpotRefBet(cur realm, coinId, amount string)
Ask AI Claude ChatGPT

SetCasinoJackpotRefBet sets the bet that wins a full jackpot (smaller bets win the same share of the pool as their share of this bet).

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetCasinoJackpotRefBet" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetCasinoJackpotRefBet" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SetCasinoJackpotSeed

func SetCasinoJackpotSeed(cur realm, coinId, tier, amount string)
Ask AI Claude ChatGPT

SetCasinoJackpotSeed sets the level a jackpot is topped back up to after a hit.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetCasinoJackpotSeed" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetCasinoJackpotSeed" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SetClaimSigner

func SetClaimSigner(cur realm, pubKeyHex string)
Ask AI Claude ChatGPT

SetClaimSigner registers the ed25519 public key (64 hex chars) of the server's claim signer. Pass "" to disable all vouchered calls (kill switch).

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetClaimSigner" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetClaimSigner" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SetExchangePaused

func SetExchangePaused(cur realm, p bool)
Ask AI Claude ChatGPT

SetExchangePaused stops NEW swaps, deposits, orders and fills. It can't stop RemoveLiquidity, CancelOrder, SweepExpiredOrders or fee withdrawals.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetExchangePaused" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetExchangePaused" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SetOperator

func SetOperator(cur realm, addr string)
Ask AI Claude ChatGPT

SetOperator lets the admin name the server account that commits and reveals casino seeds. It must be its own key, never the admin/treasury key. The operator can't move anyone's coins.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetOperator" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetOperator" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SetPassPrice

func SetPassPrice(cur realm, ugnotPer30Days int64)
Ask AI Claude ChatGPT

SetPassPrice sets the ugnot price per 30-day period.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetPassPrice" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetPassPrice" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SetPaused

func SetPaused(cur realm, p bool)
Ask AI Claude ChatGPT

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetPaused" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetPaused" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SetPoolPaused

func SetPoolPaused(cur realm, coin string, p bool)
Ask AI Claude ChatGPT

SetPoolPaused stops new swaps and deposits on one pool. Withdrawals stay open.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetPoolPaused" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetPoolPaused" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SetRelayAddress

func SetRelayAddress(cur realm, addr string)
Ask AI Claude ChatGPT

SetRelayAddress registers the treasury wallet address as the relay. Pass "" to disable the relay.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetRelayAddress" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetRelayAddress" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SetVeinMax

func SetVeinMax(cur realm, coinId string, maxSupply string)
Ask AI Claude ChatGPT

SetVeinMax overrides a coin's vein size. It can't go below what was minted.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetVeinMax" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SetVeinMax" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SkillRanks

func SkillRanks(playerAddr string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.SkillRanks()"

Result

SwapExactIn

func SwapExactIn(cur realm, coinIn string, coinOut string, amountIn uint64, minOut uint64, deadline int64) uint64
Ask AI Claude ChatGPT

SwapExactIn swaps amountIn of coinIn for at least minOut of coinOut through one pool (one side must be grin). For X→Y via grin use SwapRoute.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SwapExactIn" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SwapExactIn" -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SwapRoute

func SwapRoute(cur realm, coinIn string, coinOut string, amountIn uint64, minOut uint64, maxFills int, deadline int64) uint64
Ask AI Claude ChatGPT

SwapRoute swaps up to amountIn of coinIn for at least minOut of coinOut, using the order book (direct pair) while it beats the pools and the grin pools for the rest. Coins not needed are never debited.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SwapRoute" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SwapRoute" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SwapRouteGnot

func SwapRouteGnot(cur realm, coinIn string, coinOut string, amountIn uint64, minOut uint64, maxFills int, deadline int64) uint64
Ask AI Claude ChatGPT

SwapRouteGnot swaps coinIn for coinOut where either side may be "gnot". Uses the order book first (same as SwapRoute) then the best available pool (GRIN or GNOT, whichever gives better output).

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SwapRouteGnot" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SwapRouteGnot" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

SweepExpiredOrders

func SweepExpiredOrders(cur realm, pay string, get string) int
Ask AI Claude ChatGPT

SweepExpiredOrders closes up to maxScanPerTx expired orders of one book side, refunding each maker. Anyone may call it (also while paused).

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SweepExpiredOrders" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "SweepExpiredOrders" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

ToolLife

func ToolLife(playerAddr string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.ToolLife()"

Result

TopGuilds

func TopGuilds(limit int) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.TopGuilds()"

Result

TrainSkill

func TrainSkill(cur realm, skillId string)
Ask AI Claude ChatGPT

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "TrainSkill" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "TrainSkill" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

Transfer

func Transfer(cur realm, coinId string, toAddr string, amountStr string)
Ask AI Claude ChatGPT

Transfer sends coins to another player. It is a player's own money, so the admin can't stop it: it works while the game is paused and for banned addresses (bans only stop earning). It needs a finalized migration (MigrateBatch SETs balances). There is no receive cap: any coin can be sent to any player, whatever tools they own.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "Transfer" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "Transfer" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

TransferAdmin

func TransferAdmin(cur realm, newAdmin string)
Ask AI Claude ChatGPT

TransferAdmin hands the admin role to another address.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "TransferAdmin" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "TransferAdmin" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

TreasuryBalance

func TreasuryBalance(cur realm) int64
Ask AI Claude ChatGPT

TreasuryBalance returns the ugnot held by this realm (pass revenue not yet withdrawn).

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "TreasuryBalance" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "TreasuryBalance" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

UnbanAddress

func UnbanAddress(cur realm, targetAddr string)
Ask AI Claude ChatGPT

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "UnbanAddress" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "UnbanAddress" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

UpdateConfig

func UpdateConfig(cur realm, newAdmin string)
Ask AI Claude ChatGPT

UpdateConfig is kept for game27/28 API compatibility (= TransferAdmin).

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "UpdateConfig" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "UpdateConfig" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

VeinSupply

func VeinSupply(coinId string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.VeinSupply()"

Result

VoucherMessage

func VoucherMessage(kind, player string, nonce, expiry int64, payload string) string
Ask AI Claude ChatGPT

VoucherMessage builds the canonical message that the server signs and the realm verifies. Format: gnomoji-voucher-v2|chainId|kind|player|nonce|expiry|compactPayload

v2 changes from v1: realmPkgPath removed; payload is now compact (not raw JSON). For kind="claim": compactPayload = coinId:amount pairs sorted by coinId, comma-joined.

Example
1e.g. [["grin","100"],["joy","50"]] → "grin:100,joy:50"

For kind="ach": compactPayload = achievement IDs sorted, comma-joined.

Example
1e.g. ["blocks_1","g.grin.10"] → "blocks_1,g.grin.10"

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.VoucherMessage(,,,,)"

Result

WithdrawFunds

func WithdrawFunds(cur realm, to string, amountUgnot int64)
Ask AI Claude ChatGPT

WithdrawFunds sends GNOT the admin is OWED — Gnome Pass revenue not yet withdrawn — to `to`. It can never touch other ugnot the realm holds (donations, anything a future feature would hold for players).

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "WithdrawFunds" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "WithdrawFunds" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

WithdrawGnot

func WithdrawGnot(cur realm, amtStr string)
Ask AI Claude ChatGPT

WithdrawGnot converts internal "gnot" balance back to real ugnot and sends it to the caller. Works while the exchange is paused — it is an exit, not a trade. Any player can call this for their own balance at any time.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "WithdrawGnot" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "WithdrawGnot" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

WithdrawProtocolFees

func WithdrawProtocolFees(cur realm, coin string) uint64
Ask AI Claude ChatGPT

WithdrawProtocolFees moves the admin's OWN accrued fees for `coin` into the admin's balance. It reads only adminFees (never reserves, escrow, the casino pool or anyone's balance) and works while paused.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "WithdrawProtocolFees" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33" -func "WithdrawProtocolFees" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

WithdrawableFunds

func WithdrawableFunds() int64
Ask AI Claude ChatGPT

WithdrawableFunds = pass revenue the admin may still withdraw (ugnot).

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1algwpj0dch4stpy7pd87n7a3cwx3pjymlpexn7/game33.WithdrawableFunds()"

Result