cn.hyperchain.sdk.service.NodeService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of litesdk Show documentation
Show all versions of litesdk Show documentation
A Java client tool for Hyperchain
package cn.hyperchain.sdk.service;
import cn.hyperchain.sdk.request.Request;
import cn.hyperchain.sdk.response.node.NodeHashResponse;
import cn.hyperchain.sdk.response.node.NodeResponse;
import cn.hyperchain.sdk.response.node.NodeStateResponse;
public interface NodeService {
Request getNodes(int... nodeIds);
/**
* get all nodes states.
*
* @param nodeIds specific ids
* @return {@link Request} of {@link NodeStateResponse}
*/
Request getNodeStates(int... nodeIds);
/**
* get hash of the node that select in nodeIds randomly.
*
* @param nodeIds specific ids
* @return {@link Request} of {@link NodeHashResponse}
*/
Request getNodeHash(int... nodeIds);
/**
* get hash of the node by nodeId.
*
* @param nodeId specific id
* @return {@link Request} of {@link NodeHashResponse}
*/
Request getNodeHashByID(int nodeId);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy