Closed VladLypovyi closed 12 months ago
Because we want to provide a common way to process the common procedure. Also, we don't want the options arguments to contain mixed parameters that some belong to api and some belongs to transaction object. Thus, we provide a method to do it.
Thanks for the reply, obviously it could help to use fewer requests to the network.
By default, expiration is created for 1 minute.
In order to change it you need to make a separate call to the
extendExpiration
method (which under the hood makes a request to the network to build a new transaction using thenewTxID
method).Why not add the ability to pass
expiration
with other method-specific parameters to thecreateTransaction
method?