All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.chain.sequence.api.DevUtils Maven / Gradle / Ivy

The newest version!
package com.chain.sequence.api;

import java.util.*;

import com.chain.sequence.http.*;
import com.chain.sequence.exception.*;

/**
 * Namespace for development-only methods.
 */
public class DevUtils {
  /**
   * Resets all data in the ledger.
   * @param client ledger API connection object
   */
  public static void reset(Client client) throws ChainException {
    Map params = new HashMap<>();
    params.put("client_token", UUID.randomUUID());
    client.request("reset", params, Object.class);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy