How to call smart contract method using ethers.js and metamask not show confirmation windows?

Calls to some methods of my smart contract are regular and frequent in my application. If the method is not playable and does not transfer funds, only a gas fee, how can I remove the need to confirm this action every time with a separate window?

I think asking the user to enter the private key will be inconvenient, I’m looking for other solutions. I am using ethers.js and signer contract

new ethers.Contract(contract, abi, new ethers.providers.Web3Provider(window.ethereum, “any”).getSigner())

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.