9

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

enter image description here

2
  • 1
    I 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. Commented 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 ? Commented Aug 22, 2021 at 3:27

1 Answer 1

6

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.