I need to get the gasUsed and gasPrice so that I can calculate the correct amount of gas required for a transaction.
I can get the gasUsed using:
var accountOneReceipt = await contractInstance.functionName(parameterOne, {from: accountOne});
var accountOneGasUsed = accountOneReceipt.receipt.gasUsed;
But there is no gasPrice parameter in transaction receipt.
Info: getTransactionReceipt