Maximum gas limit of metamask

Hey there,

I am building a dapp and it need a high amount of gas limit. Is there a limit in MetaMask for gas limit? Is something like 2,000,000 as gas limit is acceptable? I know it can be maximum of 30m but my dapp wont need that much. It will vary between 1-10m gas. Would this create a warning to user?

Hi I’m not really sure what you mean could you share more details please what does your app do maybe an example. Thank you

its a request converter for another L2 of ethereum (starknet). L2 gas amounts in starknet is much higher than eth’s gas amounts so when i send a request to starknet via matemask using ethereum json-rpc requests, result from eth_estimateGas will be much higher (in millions). So is there any limit in MetaMask or is there any warning in MetaMask that says “hey look this tx can be reverted bc its gasLimit is high” or “be carefull with this tx bc gasLimit is high” . Its not normal to have millions of gas in eth when making just a swap.

I don’t think there is such a warning/error exist only when it’s low. Please refer to How to customize gas settings | MetaMask Help Center