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

Method create

sdk/java/src/main/java/com/chain/api/Account.java:194–197  ·  view source on GitHub ↗

Creates an account object. @param client client object that makes request to the core @return an account object @throws APIException This exception is raised if the api returns errors while creating the account. @throws BadURLException This exception wraps java.net.MalformedURLException. @throws Con

(Client client)

Source from the content-addressed store, hash-verified

192 * @throws JSONException This exception is raised due to malformed json requests or responses.
193 */
194 public Account create(Client client) throws ChainException {
195 return client.singletonBatchRequest(
196 "create-account", Arrays.asList(this), Account.class, APIException.class);
197 }
198
199 /**
200 * Sets the alias on the builder object.

Callers

nothing calls this directly

Calls 1

singletonBatchRequestMethod · 0.80

Tested by

no test coverage detected