Hangman
  • What is Hangman Clash?
  • Hangman
    • How to Play
    • Brackets
      • Staking
    • Boosts
    • Metagame
      • Leaderboards Rewards
      • Raffle Rewards
    • Networking + Security
    • Roadmap
      • One-off and Rotational NFTs
      • Staking Rewards
  • Spyre
    • The Protocol
    • Roadmap
Powered by GitBook
On this page
  1. Hangman
  2. Brackets

Staking

PreviousBracketsNextBoosts

Last updated 5 months ago

For on-chain games, players will be asked to use their wallet to sign a Stake to enter a match. The Stake object is an EIP712 record () that guarantees later payment of entry fee.

In this example, the payload you are being asked to sign includes all the typical EIP712 security features (these are discussed in more detail in Networking + Security), as well as an amount and fee. These are in Wei.

Because this payload is an EIP712 payload, Metamask and other wallets are able to type check and present a nice UI.

Once signed, the Hangman server hangs onto this signature. On completion of the match by both parties, the Hangman server submits both player's signed stakes, as well as the winner to the contract. The contract itself is responsible for verifying the stakes and awarding players.

On Base Mainnet, the contract resides .

Game Wallet
here
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md