I'm working in a online game project, Where users will deposit ETH into their account for playing game.
My problem is, Once a user deposit some ETH into his wallet. Example 0.10 ETH
So how we can track this balance and update user balance into our database, And allow user to play game. So while playing game user's balance will deduct or increase from our database balance not from directly their ETH wallet built into our website.
So how is it possible to track users deposit only once, So same deposit amount can not be grabbed by our code?
How peoples do this kind of stuff?