I'm wondering if there is a possibility of doing a trial run of a transaction so that the gas can be worked out before submitting to the network?
I know that there are estimates but in certain cases like a for or a while loop, it would be nice to figure out a pretty exact number for the gas limit before submission.
Am I missing something or is it just really difficult to determine gas fees before hand.