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