I have some web application based on Ethereum. This is how I call some function from a contract:
contract.doSomething.sendTransaction(data, {gasPrice: web3.toWei(10, 'Gwei')}, callback...);
This code works. But I have few questions:
1) Can I change GASPRICE for this transaction in the MetaMask?
2) How does the MetaMask know what GASLIMIT to set?
3) If there is no GASPRICE specified in the transaction code, how does the MetaMask know how to set the GASPRICE?