Is there a way in polkadot js api to be able to get the state of an object after a transaction if it is applied in the future? Is there a way in Substrate to apply a transaction(or its past implementation) to test the result?
My goal is given a current state of an object(account, balance, or any pallet), to apply a transaction as it is in Substrate, without duplicating implementation on js client, to get the resulting state of an object without actually submitting transaction to the blockchain so that we can test the transaction's result. Is there a way to apply an older version of a transaction(if there were past changes) in order to see the difference between current and past results?
Thank you