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

Method build

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

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

getSignerClientMethod · 0.45

Calls 1

singletonBatchRequestMethod · 0.80

Tested by

no test coverage detected