I am creating a game on the blockchain platform and I am doing the front part using reactjs and for this purpose I am using libraries related to SOLANA and Phantom Wallet. The problem I am facing is that Phantom Wallet asks for confirmation from the user for every transaction that is made. For example, in the game, for each action that the user performs, a message confirming the transaction is displayed. How can this be done without receiving confirmation from the user? For example, the code that runs to create a game is as follows:
program.methods
.setupGame()
.accounts({
game: gamePDA,
authority: wallet.publicKey,
playerOneAccount: CURRENT_USER_PDA,
})
.rpc();
