Im trying to estimate the gas of this kind of tx to send to a contract
var estimateGas = this.web3.eth.estimateGas({
to: toContractAddress,
gasPrice: this.web3.toHex(40000000000),
nonce: 10,
value: this.web3.toHex(forwardingValueInWei)
})
And I get as return this value: 4 712 388 which is super big gas, while the MyEtherWallet estimate 127 943
are those estimations the same unit? Why is too big from web3?