eip1559
EIP-1559 交易与手续费
核心字段:
maxFeePerGas:用户愿意支付的 gas 单价上限。maxPriorityFeePerGas:给打包者的小费(优先费)。baseFeePerGas:协议根据区块拥堵动态调整的基础费率,由网络消耗并销毁。
实际支付:min(maxFeePerGas, baseFeePerGas + maxPriorityFeePerGas)。
与 Legacy 交易差异:
- Legacy 仅有
gasPrice;EIP-1559 拆分为基础费 + 小费并引入上限,提升费率可预期性。 - 交易类型编码不同(
type 0x2为 EIP-1559)。
参考链接: