python - 以太坊 EIP-1559 兼容 Web3 原始交易结构
问题描述
我正在使用与EIP-1559兼容的 Web3 包,并且我正在尝试为使用maxFeePerGas
andmaxPriorityFeePerGas
而不是gasPrice
.
只是为了澄清我在问什么,这是我在伦敦分叉(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
字段的交易时,它们生成的二进制原始结构会是什么样子?谢谢!
解决方案
推荐阅读
- perl - 使用 Time::Piece 的 Perl 脚本在没有输出、没有错误的情况下终止 - 如何调试?
- c# - 如何使用透视相机移动物体并在 Unity3D 中旋转相机?
- python - 使用 Xpath 和 Selenium 抓取和保存数据的问题
- python - Python:如何停止创建大型 if、elif、else 语句?
- c# - Selenium - 尝试使用特定配置文件启动多个实例时出现异常
- sql - 如何在一个查询中完成
- angular - 当我点击添加待办事项时,Url="undefined"
- r - 是什么导致 R 中栅格计算中 calc 和 cellStats 之间的差异?
- c# - 在 docker/Debian 上的 r.net 中设置 R 主目录很热?
- c# - 如何将天空盒添加到相机并使用图层仅在主菜单中显示?