Builds a single transaction template. @param client client object which makes requests to the server @return a transaction template @throws APIException This exception is raised if the api returns errors while building the transaction. @throws BadURLException This exception wraps java.net.MalformedU
(Client client)
| 1016 | * @throws JSONException This exception is raised due to malformed json requests or responses. |
| 1017 | */ |
| 1018 | public Template build(Client client) throws ChainException { |
| 1019 | return client.singletonBatchRequest( |
| 1020 | "build-transaction", Arrays.asList(this), Template.class, BuildException.class); |
| 1021 | } |
| 1022 | |
| 1023 | /** |
| 1024 | * Default constructor initializes actions list. |
no test coverage detected