I am sending my txn like this but it is sent as legacy type only
-
1I found the answer to this , so you have to upgrade @ethereumjs/tx and web3 and then have to use class FeeMarketEIP1559Transaction of @ethereumjs/tx to send the transaction with new type.– Shubham SinghCommented Aug 6, 2021 at 17:00
-
<br/> i don't use @ethereumjs/tx<br/> only web3.sendTransaction like your sreenshot, how to use type EIP1559 ?– Nguyen NguyenCommented Aug 22, 2021 at 3:27
Add a comment
|
1 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