how can i calculate the trasnaction fee for the approve function ?
contractInstance.methods.approve(to, transaction.price.toString()).send({from: this.walletAddress})
i know that its made like that
let gasPrice = await web3.eth.getGasPrice();
let gasLimit = await web3.eth.estimateGas(transactionObject);
return gasPrice * gasLimit;
but where is the trasnacitonObject here ?