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)
| 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. |
nothing calls this directly
no test coverage detected