Not enough money for gas * price + cost error

When you deploy a contract to a blockchain, when you add a transaction, it gives an error, lack of funds for

gas * price + cost

What does it mean?

+5
source share
3 answers

The value is the amount of Ether to be transmitted by the transaction. For instance. "Send 10 ETH to contract X."

Gas - transaction confirmation fee; basically the units of network computing needed to complete a transaction. For instance. "Estimated gas 30,000."

- , . . "0,0001 ETH/". , , .

, - " 10ETH 30 000 0,0001 ETH/gas" = , . , .

, .

+4

chainId Ethereum , chainId , 0.

, :

{
"config":{
        "chainId": 45,
        "homesteadBlock": 0,
        "eip155Block": 0,
        "eip158Block": 0,
        "byzantiumBlock": 12
    },
  "alloc"      : {},
  "coinbase"   : "0x0000000000000000000000000000000000000000",
  "difficulty" : "0x20000",
  "extraData"  : "",
  "gasLimit"   : "0x2fefd8",
  "nonce"      : "0x0000000000000042",
  "mixhash"    : "0x0000000000000000000000000000000000000000000000000000000000000000",
  "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
  "timestamp"  : "0x00"
}

, .

+1

How do you edit the genesis.json file? I cannot find the file, and I cannot find the link to its location. I am using a Ubuntu 16 virtual machine on Windows.

-1
source

Source: https://habr.com/ru/post/1672985/


All Articles