cn.hyperchain.sdk.request.ContractRequest 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.request;
import cn.hyperchain.sdk.exception.RequestException;
import cn.hyperchain.sdk.provider.ProviderManager;
import cn.hyperchain.sdk.response.Response;
import cn.hyperchain.sdk.response.TxHashResponse;
import cn.hyperchain.sdk.transaction.Transaction;
/**
* contract result.
*
* @author tomkk
* @version 0.0.1
*/
public class ContractRequest extends Request {
public ContractRequest(String method, ProviderManager providerManager, Class clazz, Transaction transaction, int... ids) {
super(method, providerManager, clazz, ids);
}
@Override
public Response send() throws RequestException {
TxHashResponse response = (TxHashResponse) super.send();
response.setNodeIds(this.nodeIds);
response.setProviderManager(this.providerManager);
return response;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy