Based on the asset level of players in blockchain games, provide wallet solutions with varying degrees of security.
We aim to offer a variety of wallet services for fully on-chain games:
Automatically create a burner wallet when users first enter the game. Prompt users to create a wallet EOA (Externally Owned Account) and an account abstraction wallet when they acquire important assets in the game. At the same time, transfer the assets from the burner wallet to the account abstraction wallet. All subsequent asset transfers require signed multi-transactions. Ensure a relatively smooth experience when assets in the abstract account interact with the game. Process multiple transactions with a one-time signature."
We initially utilized the burner wallet code to generate an EOA wallet and monitored the asset status of the EOA. If the assets reach a certain size, users will receive a prompt. The Polygon testnet API was employed for monitoring. If the user selects 'yes,' an account abstraction wallet will be created using the soul-wallet-lib. A transaction is initiated on the wallet, with two transactions being bundled into a single UserOp, which is ultimately sent to the blockchain by the bundler.