ethers.js 签名 EIP-1559交易 报错:invalid sender

报错代码 {"jsonrpc":"2.0","id":46,"error":{"code":-32000,"message":"invalid sender"}} 交易信息 tx={ type: 2, chainId: 1, nonce: 0, gasLimit: 21000, to: '0x0000000000000000000000000000000000000000', value: 0, maxFeePerGas: 2e9, maxPriorityFeePerGas: 200e9, }

签署下面的交易就可以正常上链,但是我想使用EIP-1559的方式签署交易 tx={ chainId: 1, nonce: 0, gasLimit: 21000, to: '0x0000000000000000000000000000000000000000', value: 0, gasPrice: 2e9 }

请先 登录 后评论

1 个回答

1312930610
请先 登录 后评论
  • 1 关注
  • 0 收藏,2612 浏览
  • 1312930610 提出于 2022-11-06 22:59