Web3
1 | geth attach http://localhost:8545 |
eth
getStorageAt
获取存储值
1 | /// 获取 WBTC 的 totalSupply |
https://web3js.readthedocs.io/en/v1.2.11/web3-eth.html#getstorageat
EIP-1559
baseFeePerGas
(不可配置):交易基础费用(会被直接燃烧掉)
maxPriorityFeePerGas
:最大支付给矿工的费用(给矿工的小费,可提高交易成功率)
maxFeePerGas
:baseFeePerGas
+ maxPriorityFeePerGas
1 | /// web3 1.5.1 |
baseFeePerGas
在计算的时候可以给多一点,因为多余的会被退回来。可以通过getBlockByNumber('latest')
获取最后一个区块的baseFeePerGas