I did a check, in ethgasstation the current safeLow = 15GWei, which is equal = 15,000,000,000 wei
However, when I issue eth.getBlock("latest") what I get was:
> eth.getBlock("latest")
{
difficulty: 3462313604051830,
extraData: "0x73656f3130",
gasLimit: 8000029,
gasUsed: 7991485,
The gasLimit and gasUsed here are way lower than the safeLow value. So I can only guess that they are using different units in measurement.
Otherwise I really do not know what might had gone wrong. Because I had never enter so many zeros when I wanted to send an ETH transaction.
gasPriceisn't output when you runeth.getBlock(). Do you meangasUsed/gasLimit? If so, these are different things. ThegasPriceis how much you're willing to pay for a unit of gas. ThegasUsedandgasLimitare quantities of gas, not prices. – Richard Horrocks Jul 27 '18 at 06:20gasitself is unit-less. (Hence the 'abstract measure of work' mentioned above.) The gas price in Geth and Hardhat will likely be in wei (i.e. the base unit used by the EVM), though most UIs/block explorers will use Gwei for convenience. – Richard Horrocks Jan 06 '23 at 20:36ADDinstruction costs 3 ("3 gas"). – Richard Horrocks Jan 06 '23 at 20:53gasPriceis shown asgwei. Then shouldgasPricedefine asgwei / gas? – alper Dec 24 '23 at 14:53/ gaspart because it has no units, and probably because the namegasPricealready contains the wordgas...– Richard Horrocks Dec 24 '23 at 15:13gaslike you said. As I understandGas Usedhasgas unit(gas), where when we multipleGas Used*Gas Pricethe result would havegweiunit. – alper Dec 24 '23 at 15:58