> For the complete documentation index, see [llms.txt](https://docs.hangmanclash.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hangmanclash.com/hangman/matchmaking/staking.md).

# Staking

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 (<https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md>) that guarantees later payment of entry fee.

<figure><img src="/files/JV8ybrGKfECO5ekuFxBM" alt=""><figcaption></figcaption></figure>

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](/hangman/networking-+-security.md)), as well as an **amount** and **fee**. These are in Wei.

<figure><img src="/files/Oz9RwV2DHrKEGAJwIIcY" alt="" width="179"><figcaption></figcaption></figure>

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 [Game Wallet](https://github.com/spyre-io/game-wallet) contract. The contract itself is responsible for verifying the stakes and awarding players.

On Base Mainnet, the contract resides [here](https://basescan.org/address/0x8de63e674fcb47ec596b6320e091a9aa972cf077).
