const params = {
to: '0xdbC0d76Fb1f2399b618FB29922dBC5cf763dd3d7',
from: dbDeposit.depositAddress,
value: balance,
gas: 2000000,
gasPrice: '234567897654321',
nonce: 0
};
console.log(params);
return web3.eth.signTransaction(params, myPrivateKey);
That's my code and I'm actually unsure as to how much gas
and gasPrice
to set. I understand that gasPrice
is sort of an upper limit and gas
is how much miners get to keep?
So how do I go about figuring out how much of each?