[Ethereum] How to send eip 1559 txn using web3

eip-1559londonsoliditytransactionsweb3js

I am sending my txn like this but it is sent as legacy type only

enter image description here

Best Answer

Did you update your web3 version ?

As you can see on this page you need Web3JS >=1.5.0 : https://github.com/ChainSafe/web3.js/releases

Then your call seems right and you should get back a receipt specifying type: 0x2