While deploying contract on blockchain, on adding transaction it gives error insufficient funds for
gas *price +value
What is that mean?
Value is the amount of Ether set to be transferred with the transaction. E.g. "Send 10 ETH to Contract X."
Gas is the transaction verification fee; basically units of network computing required to execute the transaction. E.g. "30,000 gas estimate".
Price is the bid for Gas, priced in Ether. E.g. "0.0001 ETH/gas". While the gas requirement depends on the complexity of the transaction, the bid for gas is under the sender's control, with higher gas bids incentivizing miners to prioritize the transaction.
Altogether, something like "Send 10ETH to the contract with 30,000 gas in processing at 0.0001 ETH/gas" = total transaction funding required, and it exceeds the sending account balance. Meaning, insufficient funds.
Hope it helps.
In my private Ethereum Blockchain network, I resolved the issue by changing the chainId variable in my genesis block code to any random number except 0.
Please find the code for my genesis block below:
{
"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"
}
I hope it might be helpful for you.
If you are a Chainlink node operator, to fix this error you will need to fund your oracle account OR the oracle contract.
The oracle contract is what you "deploy" in remix. The oracle account is the page you can log into. See here for more info.
If you are a contract creator, the node operator you are trying to hit may have insufficient ETH in their address, or your contract is not funded properly.
See the example walkthrough for more information on hitting a node.