How to convert json to TransactionRequest?

There is toJson function on TransactionRequest option, that converts the request to json. How to do a reverse conversion, ie from json to TransactionRequest?

Hey @mpoplavkov , there isn’t an equivalent method to do the inverse i.e. to convert a json object into a BaseTransactionRequest .

It wouldn’t be prudent for such a method to exist as the transaction JSON is more than likely is analogous to an instance of a subclass of the BaseTransactionRequest abstract class i.e. an instance of a Create , Script or Blob transaction request. Once you’ve determined the TransactionType then you can call the respective constructor to instantiate the object.

Perhaps you could elaborate a bit more on your use case a bit more though.