Documentation

Everything you need to know about Stake & Snake.

๐ŸŽฎ How to play

Stake & Snake is a real-time multiplayer arena game. You control a character, collect coins dropped by other players, and cash out your winnings at any time.

1

Connect your wallet

Open the game in Base App. Connect with Base Account, Coinbase Wallet, Rabby, or MetaMask. No account creation needed.

2

Stake $1 to enter

Pay $1 in ETH to join the arena. The exact ETH amount is calculated in real time via Chainlink price feeds.

3

Compete in the arena

Navigate the arena and avoid other players' trails. When a player is eliminated, they drop coins on the map. Collect those coins to grow your balance.

4

Cash out anytime

Hit the CASH OUT button at any time. Your on-chain balance is synced and sent directly to your wallet, minus the 1% cashout fee.

Controls

Mobile: Virtual joystick (bottom-left) to steer ยท Boost button for speed burst
Desktop: Mouse to steer ยท Spacebar to boost

What causes elimination?

Running your head into another player's trail eliminates you. Collision detection is handled server-side โ€” no client-side cheating possible.

โ›“๏ธ On-chain mechanics

Stake & Snake runs on Base mainnet. Your funds are held in a verified smart contract at all times.

1

Entry โ€” joinWithETH()

Your $1 stake + 1% entry fee is sent to the smart contract. The 1% fee goes immediately to the platform wallet. Your $1 is locked in the contract until you cash out.

2

Eliminations โ€” recordElimination()

When a player is eliminated, the game server calls this function on-chain. The eliminated player's balance is dropped as coins on the map. Other players must collect those coins to earn them.

3

Coins โ€” addBalance()

When you cash out, all coins collected during the session are settled in a single on-chain transaction that adds them to your balance. Each coin is worth $0.10.

4

Cashout โ€” cashOut()

Your full on-chain balance minus 1% fee is sent directly to your wallet. The contract pays you โ€” no intermediary.

Smart contract address (Base mainnet, verified):

0xb24881ED881D1f4bD074978468fBCD688450FCB1

๐Ÿ’ธ Fees

Stake & Snake charges two fees, both handled transparently by the smart contract.

FeeAmountWhenGoes to
Entry fee1%When you join the arenaPlatform wallet
Cashout fee1%When you withdraw winningsPlatform wallet
Gas fees~$0.01Each on-chain transactionBase network

Example โ€” $1 entry, $3 balance at cashout

Entry: pay $1.01 total ($1 stake + $0.01 fee)
Cashout: receive $2.97 ($3 balance โˆ’ $0.03 fee)
Net profit: +$1.96

โ“ FAQ

No. Stake & Snake is a skill-based competitive game. Outcomes are determined entirely by player skill and real-time decisions โ€” not by chance or random number generation.
No. Your maximum loss is your $1 entry stake plus the 1% entry fee ($1.01 total). You can never lose more than what you put in.
The smart contract uses Chainlink price feeds to calculate the exact ETH equivalent of $1 at the moment you join. A 1% slippage buffer is applied, and any surplus ETH is automatically refunded to your wallet.
Base Account (recommended), Coinbase Wallet, Rabby, and MetaMask. The game is optimized for Base App on mobile.
If you disconnect, the server will auto-forfeit your position after a timeout. Your remaining on-chain balance at that point is forfeited to the platform. Always cash out before leaving.
A few seconds. When you press CASH OUT, the server syncs your on-chain balance and presents the exact amount. Once you confirm, the transaction settles on Base mainnet โ€” typically under 5 seconds.

๐Ÿ”’ Security & transparency

Stake & Snake is built with transparency as a core principle.

โœ“ Verified smart contract

The contract source code is fully verified and public on Basescan. Anyone can read exactly how funds are handled.

โœ“ Server-side collision

All collision detection runs on the server. Clients cannot cheat by manipulating their local game state.

โœ“ Non-custodial

The game server never holds your private keys. Funds stay in the smart contract until you personally sign a cashout transaction.

โœ“ Chainlink price feeds

ETH/USD prices come from Chainlink decentralized oracles โ€” not from the platform. No price manipulation possible.

โœ“ Wallet auth via Privy

Authentication is handled by Privy. The server verifies your wallet signature before allowing any game action.

โœ“ Security review

Applied for Coinbase's free security review program for Base builders.

Found a bug or vulnerability?

Contact us at contact@stakeandsnake.com or on Telegram: t.me/stakeandsnake1