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

1312930610 1312930610 提出于 2022-11-06 22:59 6024 浏览

报错代码 {"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 个回答

写回答

你需要登录后才可以回答问题,登录