I am looking for a solution to estimate multiple transactions together before submitting any of them. However some of these transaction depend on the other in the sense, if they are not submitted in an order they will fail. I can use nonce to manage the order of submission of them, but the later transactions cannot be properly estimated without the depended transaction being submitted.
My use case is to find out the transaction fees for all the transactions together before even submitting the first transaction.
One solution as mentioned here is to use a fork using tools like ganache or hardhat and then do the estimation by submitting my transactions one by one on the fork and then estimating the dependent transactions. However this is not scalable for many users as I will not be able to create that many forks.
Please help, thanks in advance.