MCPcopy Index your code
hub / github.com/chain/Core / buildBatch

Method buildBatch

sdk/java/src/main/java/com/chain/api/Transaction.java:480–483  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 6

payMethod · 0.95
testBatchTransactionMethod · 0.95
mainMethod · 0.95
callbacks.jsFile · 0.80
promises.jsFile · 0.80
batchOperations.jsFile · 0.80

Calls 1

batchRequestMethod · 0.80

Tested by 1

testBatchTransactionMethod · 0.76