我使用的是一个兼容的Web3包,我试图为原始签名事务找到一个结构,它使用maxFeePerGas
和maxPriorityFeePerGas
而不是gasPrice
为了澄清我的问题,以下是我在London fork(前EIP-1559)之前用来破译原始签名交易(现在被认为是遗留交易)的方法:
class Transaction(rlp.Serializable):
fields = [
("nonce", big_endian_int),
("gas_price", big_endian_int),
("gas", big_endian_int),
("to", Binary.fixed_length(20, allow_empty=True)),
("value", big_endian_int),
("data", binary),
("v", big_endian_int),
("r", big_endian_int),
("s", big_endian_int),
]
现在,当我对使用maxFeePerGas
和maxPriorityFeePerGas
字段的事务进行签名时,它们生成的二进制原始结构会是什么样子?谢谢
目前没有回答
相关问题 更多 >
编程相关推荐