如何找到已确认的与以太js交易的天然气价格?
发布于 2022-01-09 06:03:02
gasUsed:{ BigNumber:"443560“},
以及交易的总成本
getTxCost = async (txHash) => {
let receipt = await ethers.provider.getTransactionReceipt(txHash);
return receipt.effectiveGasPrice.mul(receipt.gasUsed);
};
发布于 2021-01-16 14:47:18
provider.getTransaction([transactionHash])
https://ethereum.stackexchange.com/questions/92353
复制相似问题