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

Method create

sdk/java/src/main/java/com/chain/api/Asset.java:229–232  ·  view source on GitHub ↗

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

(Client client)

Source from the content-addressed store, hash-verified

227 * @throws JSONException This exception is raised due to malformed json requests or responses.
228 */
229 public Asset create(Client client) throws ChainException {
230 return client.singletonBatchRequest(
231 "create-asset", Arrays.asList(this), Asset.class, APIException.class);
232 }
233
234 /**
235 * Sets the alias on the builder object.

Callers

nothing calls this directly

Calls 1

singletonBatchRequestMethod · 0.80

Tested by

no test coverage detected