Yes of course. I monitor her closely. I try my best to respond quickly every time anyone responds to her. I would have the same question though. BTW I use this site, it seems to do a better job...
https://etherscan.io/gastracker
If you have the luxury of doing this with code, you can use this little snippet...
async function defaultParams(fromAddr){
let params = {
from : fromAddr,
gas : 300000
};
let gasPrice = await web3.eth.getGasPrice();
params.gasPrice = gasPrice;
console.log("params: ",params);
return params;
}
async function sendFundsToOwners(){
let balance = await web3.eth.getBalance(agentAddress);
console.log("Agent Balance is: ",balance);
let toSend = Math.ceil(balance * 0.9999);
console.log("Sending "+toSend+" WEI");
let txData = {
to: partnersAddress,
value: toSend
}
let gasPrice = await web3.eth.getGasPrice();
console.log("gasPrice: ",gasPrice);
txData.gasPrice = gasPrice;
txData.gas = await web3.eth.estimateGas(txData);
txData.value = toSend - (txData.gasPrice * txData.gas);
console.log("txData: ",txData);
let signedTx = await account.signTransaction(txData);
console.log("signedTx: ",signedTx);
try{
let result = await web3.eth.sendSignedTransaction(signedTx.rawTransaction);
console.log("Result of send: ",result);
return result;
}catch(error){
console.error(error);
sendFundsToOwners();
}
}
There are two different functions here doing 2 different things.
The first is a shorthand way of getting the current gas price, it uses a web3js function that takes the average of the last 50 blocks or so. Works for metamask or mist, but won't work with infura.
The second is a sweep function, designed to work with clientside signing such as would be the case if you're using infura, where there isn't a wallet to speak of.
Assume agent address is the address of your dapp controller. I use that to sweep funds collected in my dapps such as flairdrop, to an agent and then when the agent has more money than it needs for awhile, I have it sweep the remainder to me.
Either way gas price is a crucial thing and the wallets get this SOOO wrong, SOOO often. Nothing like sending a tx with the recommended 1 GWEI only to find out it's currently 100 GWEI to get confirmed before the second coming. Or sending with 100 GWEI only to find the blockchain has calmed down and now you've spent 99x what you needed to.
RE: Are you overpaying for Ether transactions?