好像是BSC不支持EIP1559的问题
报错代码
{"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
}