VoucherMessage
Ask AI
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"
Command
gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g138gdmwj6heduu3st796lw6qqdwylgaxf7ty5gz/game32.VoucherMessage(,,,,)"
Result