# Web3 and On-Chain Integration

One of the most groundbreaking roles of the Companion Bot is managing blockchain interactions in the background, thanks to Thirdweb Engine. We’ve designed it this way to make the Web3 components of the game nearly invisible to players who don’t care about them, and seamless for those who do:

**• Gasless Transactions:** Whenever an in-game action requires a blockchain transaction (minting an NFT, trading an item on the marketplace, claiming a token reward), the bot will handle it automatically behind the scenes. It uses advanced logic to batch transactions or use meta-transactions so that players *don’t have to pay gas fees or sign transactions* for routine actions. To the player, it feels no different than a normal in-game action – the bot might literally say “Processing on the network…done!” as it completes an on-chain task.

**• Wallet Management:** The bot is able to interface with the user’s game wallet. On starting the game, new players get a secure, non-custodial wallet auto-generated (linked to their email or social login) . The Companion Bot has access to the keys securely, so players aren’t even aware of the wallet creation. The bot will manage private keys and ensure safety, meaning players won’t have to handle seed phrases unless they choose to export their wallet. For all intents and purposes, the bot is acting like a wallet within the game world, making sure your assets are safe and accessible.

**• NFT and Token Management:** If you earn an NFT in game, the bot will put it in your inventory (which is essentially your wallet). When you want to list an item on the marketplace, you just command the bot to do so through the interface – it will handle the listing transaction. If you win $STOOPID tokens from a tournament, the bot adds it to your balance and can even stake it for you if you instruct it to (or if you toggle an auto-stake setting).\
The idea is all Web3 features (minting, trading, staking) can be done with one-click simplicity as if they were normal game mechanics, thanks to the bot’s integration.

**• Security & Fraud Prevention:** The Companion Bot also assists in security – it might warn users if a trade seems suspicious or if someone is attempting an unsafe transaction. Because it’s tied into our back-end, it can flag duplicate or fake NFTs, preventing scams. It also ensures that all blockchain actions comply with game rules (e.g., preventing item duplication or unauthorized NFT trading outside the game).
