Builds a batch of transaction templates. @param client client object which makes server requests @param builders list of transaction builders @return a list of transaction templates @throws APIException This exception is raised if the api returns errors while building transaction templates. @throws
(
Client client, List<Transaction.Builder> builders)
| 478 | * @throws JSONException This exception is raised due to malformed json requests or responses. |
| 479 | */ |
| 480 | public static BatchResponse<Template> buildBatch( |
| 481 | Client client, List<Transaction.Builder> builders) throws ChainException { |
| 482 | return client.batchRequest("build-transaction", builders, Template.class, BuildException.class); |
| 483 | } |
| 484 | |
| 485 | /** |
| 486 | * Submits a batch of signed transaction templates for inclusion into a block. |