How to fix this?

Invalid transaction envelope type: specified type “0x0” but including maxFeePerGas and maxPriorityFeePerGas requires type: “0x2”

How to fix this? Please help.

Hi, I faced this problem too. Looks like now we have to clarify { … type: ‘0x2’ … } in send method in web3. I have fixed my dapp this way

Hey this did not solve my problem, do you also add the paramter of maxgasfee and maxprioritygasfee in the send method? If yes, how do you calculate it