I come up with this solution with gas estimation. Could someone help check whether it is feasible?
If we want to send a transaction, first, we just fork the newest mainnet blockchain using ganache-cli fork. Then we send the transaction to local forked chain with intended input, and we can get the gasUsed after this transaction succeeds.
Is this gasUsed the same as the cost for trans sent to mainnet?
The link below found they are different. But do someone know why this happens? Or what the difference between forked mainnet with actual mainnet?