RevealPvpMove
Ask AI
RevealPvpMove requires both players to have committed before either can reveal. Phase 6: when both players have revealed, determines the RPS winner and pays out 2× wager minus 2% rake to the winner. Draw = full refund to both players. pvpWagers.Remove is called after payout to prevent double-payouts.
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/g138gdmwj6heduu3st796lw6qqdwylgaxf7ty5gz/game11" -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/g138gdmwj6heduu3st796lw6qqdwylgaxf7ty5gz/game11" -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