![JAR search and dependency download from the Maven repository](/logo.png)
types.AergoRPCServiceGrpc Maven / Gradle / Ivy
The newest version!
package types;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
**
* AergoRPCService is the main RPC service providing endpoints to interact
* with the node and blockchain. If not otherwise noted, methods are unary requests.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.43.2)",
comments = "Source: rpc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class AergoRPCServiceGrpc {
private AergoRPCServiceGrpc() {}
public static final String SERVICE_NAME = "types.AergoRPCService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getNodeStateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "NodeState",
requestType = types.Rpc.NodeReq.class,
responseType = types.Rpc.SingleBytes.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getNodeStateMethod() {
io.grpc.MethodDescriptor getNodeStateMethod;
if ((getNodeStateMethod = AergoRPCServiceGrpc.getNodeStateMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getNodeStateMethod = AergoRPCServiceGrpc.getNodeStateMethod) == null) {
AergoRPCServiceGrpc.getNodeStateMethod = getNodeStateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "NodeState"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.NodeReq.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.SingleBytes.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("NodeState"))
.build();
}
}
}
return getNodeStateMethod;
}
private static volatile io.grpc.MethodDescriptor getMetricMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Metric",
requestType = types.Metric.MetricsRequest.class,
responseType = types.Metric.Metrics.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getMetricMethod() {
io.grpc.MethodDescriptor getMetricMethod;
if ((getMetricMethod = AergoRPCServiceGrpc.getMetricMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getMetricMethod = AergoRPCServiceGrpc.getMetricMethod) == null) {
AergoRPCServiceGrpc.getMetricMethod = getMetricMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Metric"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Metric.MetricsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Metric.Metrics.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("Metric"))
.build();
}
}
}
return getMetricMethod;
}
private static volatile io.grpc.MethodDescriptor getBlockchainMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Blockchain",
requestType = types.Rpc.Empty.class,
responseType = types.Rpc.BlockchainStatus.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getBlockchainMethod() {
io.grpc.MethodDescriptor getBlockchainMethod;
if ((getBlockchainMethod = AergoRPCServiceGrpc.getBlockchainMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getBlockchainMethod = AergoRPCServiceGrpc.getBlockchainMethod) == null) {
AergoRPCServiceGrpc.getBlockchainMethod = getBlockchainMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Blockchain"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.BlockchainStatus.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("Blockchain"))
.build();
}
}
}
return getBlockchainMethod;
}
private static volatile io.grpc.MethodDescriptor getGetChainInfoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetChainInfo",
requestType = types.Rpc.Empty.class,
responseType = types.Rpc.ChainInfo.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetChainInfoMethod() {
io.grpc.MethodDescriptor getGetChainInfoMethod;
if ((getGetChainInfoMethod = AergoRPCServiceGrpc.getGetChainInfoMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetChainInfoMethod = AergoRPCServiceGrpc.getGetChainInfoMethod) == null) {
AergoRPCServiceGrpc.getGetChainInfoMethod = getGetChainInfoMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetChainInfo"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.ChainInfo.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetChainInfo"))
.build();
}
}
}
return getGetChainInfoMethod;
}
private static volatile io.grpc.MethodDescriptor getChainStatMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ChainStat",
requestType = types.Rpc.Empty.class,
responseType = types.Rpc.ChainStats.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getChainStatMethod() {
io.grpc.MethodDescriptor getChainStatMethod;
if ((getChainStatMethod = AergoRPCServiceGrpc.getChainStatMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getChainStatMethod = AergoRPCServiceGrpc.getChainStatMethod) == null) {
AergoRPCServiceGrpc.getChainStatMethod = getChainStatMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ChainStat"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.ChainStats.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ChainStat"))
.build();
}
}
}
return getChainStatMethod;
}
private static volatile io.grpc.MethodDescriptor getListBlockHeadersMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListBlockHeaders",
requestType = types.Rpc.ListParams.class,
responseType = types.Rpc.BlockHeaderList.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListBlockHeadersMethod() {
io.grpc.MethodDescriptor getListBlockHeadersMethod;
if ((getListBlockHeadersMethod = AergoRPCServiceGrpc.getListBlockHeadersMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getListBlockHeadersMethod = AergoRPCServiceGrpc.getListBlockHeadersMethod) == null) {
AergoRPCServiceGrpc.getListBlockHeadersMethod = getListBlockHeadersMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBlockHeaders"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.ListParams.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.BlockHeaderList.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ListBlockHeaders"))
.build();
}
}
}
return getListBlockHeadersMethod;
}
private static volatile io.grpc.MethodDescriptor getListBlockMetadataMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListBlockMetadata",
requestType = types.Rpc.ListParams.class,
responseType = types.Rpc.BlockMetadataList.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListBlockMetadataMethod() {
io.grpc.MethodDescriptor getListBlockMetadataMethod;
if ((getListBlockMetadataMethod = AergoRPCServiceGrpc.getListBlockMetadataMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getListBlockMetadataMethod = AergoRPCServiceGrpc.getListBlockMetadataMethod) == null) {
AergoRPCServiceGrpc.getListBlockMetadataMethod = getListBlockMetadataMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBlockMetadata"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.ListParams.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.BlockMetadataList.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ListBlockMetadata"))
.build();
}
}
}
return getListBlockMetadataMethod;
}
private static volatile io.grpc.MethodDescriptor getListBlockStreamMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListBlockStream",
requestType = types.Rpc.Empty.class,
responseType = types.Blockchain.Block.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getListBlockStreamMethod() {
io.grpc.MethodDescriptor getListBlockStreamMethod;
if ((getListBlockStreamMethod = AergoRPCServiceGrpc.getListBlockStreamMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getListBlockStreamMethod = AergoRPCServiceGrpc.getListBlockStreamMethod) == null) {
AergoRPCServiceGrpc.getListBlockStreamMethod = getListBlockStreamMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBlockStream"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.Block.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ListBlockStream"))
.build();
}
}
}
return getListBlockStreamMethod;
}
private static volatile io.grpc.MethodDescriptor getListBlockMetadataStreamMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListBlockMetadataStream",
requestType = types.Rpc.Empty.class,
responseType = types.Rpc.BlockMetadata.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getListBlockMetadataStreamMethod() {
io.grpc.MethodDescriptor getListBlockMetadataStreamMethod;
if ((getListBlockMetadataStreamMethod = AergoRPCServiceGrpc.getListBlockMetadataStreamMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getListBlockMetadataStreamMethod = AergoRPCServiceGrpc.getListBlockMetadataStreamMethod) == null) {
AergoRPCServiceGrpc.getListBlockMetadataStreamMethod = getListBlockMetadataStreamMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBlockMetadataStream"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.BlockMetadata.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ListBlockMetadataStream"))
.build();
}
}
}
return getListBlockMetadataStreamMethod;
}
private static volatile io.grpc.MethodDescriptor getGetBlockMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBlock",
requestType = types.Rpc.SingleBytes.class,
responseType = types.Blockchain.Block.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetBlockMethod() {
io.grpc.MethodDescriptor getGetBlockMethod;
if ((getGetBlockMethod = AergoRPCServiceGrpc.getGetBlockMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetBlockMethod = AergoRPCServiceGrpc.getGetBlockMethod) == null) {
AergoRPCServiceGrpc.getGetBlockMethod = getGetBlockMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlock"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.SingleBytes.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.Block.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetBlock"))
.build();
}
}
}
return getGetBlockMethod;
}
private static volatile io.grpc.MethodDescriptor getGetBlockMetadataMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBlockMetadata",
requestType = types.Rpc.SingleBytes.class,
responseType = types.Rpc.BlockMetadata.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetBlockMetadataMethod() {
io.grpc.MethodDescriptor getGetBlockMetadataMethod;
if ((getGetBlockMetadataMethod = AergoRPCServiceGrpc.getGetBlockMetadataMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetBlockMetadataMethod = AergoRPCServiceGrpc.getGetBlockMetadataMethod) == null) {
AergoRPCServiceGrpc.getGetBlockMetadataMethod = getGetBlockMetadataMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockMetadata"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.SingleBytes.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.BlockMetadata.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetBlockMetadata"))
.build();
}
}
}
return getGetBlockMetadataMethod;
}
private static volatile io.grpc.MethodDescriptor getGetBlockBodyMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBlockBody",
requestType = types.Rpc.BlockBodyParams.class,
responseType = types.Rpc.BlockBodyPaged.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetBlockBodyMethod() {
io.grpc.MethodDescriptor getGetBlockBodyMethod;
if ((getGetBlockBodyMethod = AergoRPCServiceGrpc.getGetBlockBodyMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetBlockBodyMethod = AergoRPCServiceGrpc.getGetBlockBodyMethod) == null) {
AergoRPCServiceGrpc.getGetBlockBodyMethod = getGetBlockBodyMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockBody"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.BlockBodyParams.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.BlockBodyPaged.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetBlockBody"))
.build();
}
}
}
return getGetBlockBodyMethod;
}
private static volatile io.grpc.MethodDescriptor getGetTXMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetTX",
requestType = types.Rpc.SingleBytes.class,
responseType = types.Blockchain.Tx.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetTXMethod() {
io.grpc.MethodDescriptor getGetTXMethod;
if ((getGetTXMethod = AergoRPCServiceGrpc.getGetTXMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetTXMethod = AergoRPCServiceGrpc.getGetTXMethod) == null) {
AergoRPCServiceGrpc.getGetTXMethod = getGetTXMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTX"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.SingleBytes.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.Tx.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetTX"))
.build();
}
}
}
return getGetTXMethod;
}
private static volatile io.grpc.MethodDescriptor getGetBlockTXMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBlockTX",
requestType = types.Rpc.SingleBytes.class,
responseType = types.Blockchain.TxInBlock.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetBlockTXMethod() {
io.grpc.MethodDescriptor getGetBlockTXMethod;
if ((getGetBlockTXMethod = AergoRPCServiceGrpc.getGetBlockTXMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetBlockTXMethod = AergoRPCServiceGrpc.getGetBlockTXMethod) == null) {
AergoRPCServiceGrpc.getGetBlockTXMethod = getGetBlockTXMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBlockTX"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.SingleBytes.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.TxInBlock.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetBlockTX"))
.build();
}
}
}
return getGetBlockTXMethod;
}
private static volatile io.grpc.MethodDescriptor getGetReceiptMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetReceipt",
requestType = types.Rpc.SingleBytes.class,
responseType = types.Blockchain.Receipt.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetReceiptMethod() {
io.grpc.MethodDescriptor getGetReceiptMethod;
if ((getGetReceiptMethod = AergoRPCServiceGrpc.getGetReceiptMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetReceiptMethod = AergoRPCServiceGrpc.getGetReceiptMethod) == null) {
AergoRPCServiceGrpc.getGetReceiptMethod = getGetReceiptMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetReceipt"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.SingleBytes.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.Receipt.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetReceipt"))
.build();
}
}
}
return getGetReceiptMethod;
}
private static volatile io.grpc.MethodDescriptor getGetABIMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetABI",
requestType = types.Rpc.SingleBytes.class,
responseType = types.Blockchain.ABI.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetABIMethod() {
io.grpc.MethodDescriptor getGetABIMethod;
if ((getGetABIMethod = AergoRPCServiceGrpc.getGetABIMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetABIMethod = AergoRPCServiceGrpc.getGetABIMethod) == null) {
AergoRPCServiceGrpc.getGetABIMethod = getGetABIMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetABI"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.SingleBytes.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.ABI.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetABI"))
.build();
}
}
}
return getGetABIMethod;
}
private static volatile io.grpc.MethodDescriptor getSendTXMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SendTX",
requestType = types.Blockchain.Tx.class,
responseType = types.Rpc.CommitResult.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSendTXMethod() {
io.grpc.MethodDescriptor getSendTXMethod;
if ((getSendTXMethod = AergoRPCServiceGrpc.getSendTXMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getSendTXMethod = AergoRPCServiceGrpc.getSendTXMethod) == null) {
AergoRPCServiceGrpc.getSendTXMethod = getSendTXMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendTX"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.Tx.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.CommitResult.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("SendTX"))
.build();
}
}
}
return getSendTXMethod;
}
private static volatile io.grpc.MethodDescriptor getSignTXMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SignTX",
requestType = types.Blockchain.Tx.class,
responseType = types.Blockchain.Tx.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSignTXMethod() {
io.grpc.MethodDescriptor getSignTXMethod;
if ((getSignTXMethod = AergoRPCServiceGrpc.getSignTXMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getSignTXMethod = AergoRPCServiceGrpc.getSignTXMethod) == null) {
AergoRPCServiceGrpc.getSignTXMethod = getSignTXMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SignTX"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.Tx.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.Tx.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("SignTX"))
.build();
}
}
}
return getSignTXMethod;
}
private static volatile io.grpc.MethodDescriptor getVerifyTXMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "VerifyTX",
requestType = types.Blockchain.Tx.class,
responseType = types.Rpc.VerifyResult.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getVerifyTXMethod() {
io.grpc.MethodDescriptor getVerifyTXMethod;
if ((getVerifyTXMethod = AergoRPCServiceGrpc.getVerifyTXMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getVerifyTXMethod = AergoRPCServiceGrpc.getVerifyTXMethod) == null) {
AergoRPCServiceGrpc.getVerifyTXMethod = getVerifyTXMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyTX"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.Tx.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.VerifyResult.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("VerifyTX"))
.build();
}
}
}
return getVerifyTXMethod;
}
private static volatile io.grpc.MethodDescriptor getCommitTXMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CommitTX",
requestType = types.Blockchain.TxList.class,
responseType = types.Rpc.CommitResultList.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCommitTXMethod() {
io.grpc.MethodDescriptor getCommitTXMethod;
if ((getCommitTXMethod = AergoRPCServiceGrpc.getCommitTXMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getCommitTXMethod = AergoRPCServiceGrpc.getCommitTXMethod) == null) {
AergoRPCServiceGrpc.getCommitTXMethod = getCommitTXMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CommitTX"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.TxList.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.CommitResultList.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("CommitTX"))
.build();
}
}
}
return getCommitTXMethod;
}
private static volatile io.grpc.MethodDescriptor getGetStateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetState",
requestType = types.Rpc.SingleBytes.class,
responseType = types.Blockchain.State.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetStateMethod() {
io.grpc.MethodDescriptor getGetStateMethod;
if ((getGetStateMethod = AergoRPCServiceGrpc.getGetStateMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetStateMethod = AergoRPCServiceGrpc.getGetStateMethod) == null) {
AergoRPCServiceGrpc.getGetStateMethod = getGetStateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetState"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.SingleBytes.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.State.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetState"))
.build();
}
}
}
return getGetStateMethod;
}
private static volatile io.grpc.MethodDescriptor getGetStateAndProofMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetStateAndProof",
requestType = types.Rpc.AccountAndRoot.class,
responseType = types.Blockchain.AccountProof.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetStateAndProofMethod() {
io.grpc.MethodDescriptor getGetStateAndProofMethod;
if ((getGetStateAndProofMethod = AergoRPCServiceGrpc.getGetStateAndProofMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetStateAndProofMethod = AergoRPCServiceGrpc.getGetStateAndProofMethod) == null) {
AergoRPCServiceGrpc.getGetStateAndProofMethod = getGetStateAndProofMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStateAndProof"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.AccountAndRoot.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.AccountProof.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetStateAndProof"))
.build();
}
}
}
return getGetStateAndProofMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateAccount",
requestType = types.Rpc.Personal.class,
responseType = types.AccountOuterClass.Account.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateAccountMethod() {
io.grpc.MethodDescriptor getCreateAccountMethod;
if ((getCreateAccountMethod = AergoRPCServiceGrpc.getCreateAccountMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getCreateAccountMethod = AergoRPCServiceGrpc.getCreateAccountMethod) == null) {
AergoRPCServiceGrpc.getCreateAccountMethod = getCreateAccountMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAccount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.Personal.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.AccountOuterClass.Account.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("CreateAccount"))
.build();
}
}
}
return getCreateAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getGetAccountsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetAccounts",
requestType = types.Rpc.Empty.class,
responseType = types.AccountOuterClass.AccountList.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetAccountsMethod() {
io.grpc.MethodDescriptor getGetAccountsMethod;
if ((getGetAccountsMethod = AergoRPCServiceGrpc.getGetAccountsMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetAccountsMethod = AergoRPCServiceGrpc.getGetAccountsMethod) == null) {
AergoRPCServiceGrpc.getGetAccountsMethod = getGetAccountsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccounts"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.AccountOuterClass.AccountList.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetAccounts"))
.build();
}
}
}
return getGetAccountsMethod;
}
private static volatile io.grpc.MethodDescriptor getLockAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "LockAccount",
requestType = types.Rpc.Personal.class,
responseType = types.AccountOuterClass.Account.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getLockAccountMethod() {
io.grpc.MethodDescriptor getLockAccountMethod;
if ((getLockAccountMethod = AergoRPCServiceGrpc.getLockAccountMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getLockAccountMethod = AergoRPCServiceGrpc.getLockAccountMethod) == null) {
AergoRPCServiceGrpc.getLockAccountMethod = getLockAccountMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "LockAccount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.Personal.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.AccountOuterClass.Account.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("LockAccount"))
.build();
}
}
}
return getLockAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getUnlockAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UnlockAccount",
requestType = types.Rpc.Personal.class,
responseType = types.AccountOuterClass.Account.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUnlockAccountMethod() {
io.grpc.MethodDescriptor getUnlockAccountMethod;
if ((getUnlockAccountMethod = AergoRPCServiceGrpc.getUnlockAccountMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getUnlockAccountMethod = AergoRPCServiceGrpc.getUnlockAccountMethod) == null) {
AergoRPCServiceGrpc.getUnlockAccountMethod = getUnlockAccountMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnlockAccount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.Personal.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.AccountOuterClass.Account.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("UnlockAccount"))
.build();
}
}
}
return getUnlockAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getImportAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ImportAccount",
requestType = types.Rpc.ImportFormat.class,
responseType = types.AccountOuterClass.Account.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getImportAccountMethod() {
io.grpc.MethodDescriptor getImportAccountMethod;
if ((getImportAccountMethod = AergoRPCServiceGrpc.getImportAccountMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getImportAccountMethod = AergoRPCServiceGrpc.getImportAccountMethod) == null) {
AergoRPCServiceGrpc.getImportAccountMethod = getImportAccountMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportAccount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.ImportFormat.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.AccountOuterClass.Account.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ImportAccount"))
.build();
}
}
}
return getImportAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getExportAccountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ExportAccount",
requestType = types.Rpc.Personal.class,
responseType = types.Rpc.SingleBytes.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getExportAccountMethod() {
io.grpc.MethodDescriptor getExportAccountMethod;
if ((getExportAccountMethod = AergoRPCServiceGrpc.getExportAccountMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getExportAccountMethod = AergoRPCServiceGrpc.getExportAccountMethod) == null) {
AergoRPCServiceGrpc.getExportAccountMethod = getExportAccountMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAccount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.Personal.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.SingleBytes.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ExportAccount"))
.build();
}
}
}
return getExportAccountMethod;
}
private static volatile io.grpc.MethodDescriptor getExportAccountKeystoreMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ExportAccountKeystore",
requestType = types.Rpc.Personal.class,
responseType = types.Rpc.SingleBytes.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getExportAccountKeystoreMethod() {
io.grpc.MethodDescriptor getExportAccountKeystoreMethod;
if ((getExportAccountKeystoreMethod = AergoRPCServiceGrpc.getExportAccountKeystoreMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getExportAccountKeystoreMethod = AergoRPCServiceGrpc.getExportAccountKeystoreMethod) == null) {
AergoRPCServiceGrpc.getExportAccountKeystoreMethod = getExportAccountKeystoreMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportAccountKeystore"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.Personal.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.SingleBytes.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ExportAccountKeystore"))
.build();
}
}
}
return getExportAccountKeystoreMethod;
}
private static volatile io.grpc.MethodDescriptor getQueryContractMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "QueryContract",
requestType = types.Blockchain.Query.class,
responseType = types.Rpc.SingleBytes.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getQueryContractMethod() {
io.grpc.MethodDescriptor getQueryContractMethod;
if ((getQueryContractMethod = AergoRPCServiceGrpc.getQueryContractMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getQueryContractMethod = AergoRPCServiceGrpc.getQueryContractMethod) == null) {
AergoRPCServiceGrpc.getQueryContractMethod = getQueryContractMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryContract"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.SingleBytes.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("QueryContract"))
.build();
}
}
}
return getQueryContractMethod;
}
private static volatile io.grpc.MethodDescriptor getQueryContractStateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "QueryContractState",
requestType = types.Blockchain.StateQuery.class,
responseType = types.Blockchain.StateQueryProof.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getQueryContractStateMethod() {
io.grpc.MethodDescriptor getQueryContractStateMethod;
if ((getQueryContractStateMethod = AergoRPCServiceGrpc.getQueryContractStateMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getQueryContractStateMethod = AergoRPCServiceGrpc.getQueryContractStateMethod) == null) {
AergoRPCServiceGrpc.getQueryContractStateMethod = getQueryContractStateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryContractState"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.StateQuery.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.StateQueryProof.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("QueryContractState"))
.build();
}
}
}
return getQueryContractStateMethod;
}
private static volatile io.grpc.MethodDescriptor getGetPeersMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetPeers",
requestType = types.Rpc.PeersParams.class,
responseType = types.Rpc.PeerList.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetPeersMethod() {
io.grpc.MethodDescriptor getGetPeersMethod;
if ((getGetPeersMethod = AergoRPCServiceGrpc.getGetPeersMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetPeersMethod = AergoRPCServiceGrpc.getGetPeersMethod) == null) {
AergoRPCServiceGrpc.getGetPeersMethod = getGetPeersMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPeers"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.PeersParams.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.PeerList.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetPeers"))
.build();
}
}
}
return getGetPeersMethod;
}
private static volatile io.grpc.MethodDescriptor getGetVotesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetVotes",
requestType = types.Rpc.VoteParams.class,
responseType = types.Rpc.VoteList.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetVotesMethod() {
io.grpc.MethodDescriptor getGetVotesMethod;
if ((getGetVotesMethod = AergoRPCServiceGrpc.getGetVotesMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetVotesMethod = AergoRPCServiceGrpc.getGetVotesMethod) == null) {
AergoRPCServiceGrpc.getGetVotesMethod = getGetVotesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetVotes"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.VoteParams.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.VoteList.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetVotes"))
.build();
}
}
}
return getGetVotesMethod;
}
private static volatile io.grpc.MethodDescriptor getGetAccountVotesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetAccountVotes",
requestType = types.Rpc.AccountAddress.class,
responseType = types.Rpc.AccountVoteInfo.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetAccountVotesMethod() {
io.grpc.MethodDescriptor getGetAccountVotesMethod;
if ((getGetAccountVotesMethod = AergoRPCServiceGrpc.getGetAccountVotesMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetAccountVotesMethod = AergoRPCServiceGrpc.getGetAccountVotesMethod) == null) {
AergoRPCServiceGrpc.getGetAccountVotesMethod = getGetAccountVotesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccountVotes"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.AccountAddress.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.AccountVoteInfo.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetAccountVotes"))
.build();
}
}
}
return getGetAccountVotesMethod;
}
private static volatile io.grpc.MethodDescriptor getGetStakingMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetStaking",
requestType = types.Rpc.AccountAddress.class,
responseType = types.Rpc.Staking.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetStakingMethod() {
io.grpc.MethodDescriptor getGetStakingMethod;
if ((getGetStakingMethod = AergoRPCServiceGrpc.getGetStakingMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetStakingMethod = AergoRPCServiceGrpc.getGetStakingMethod) == null) {
AergoRPCServiceGrpc.getGetStakingMethod = getGetStakingMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStaking"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.AccountAddress.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.Staking.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetStaking"))
.build();
}
}
}
return getGetStakingMethod;
}
private static volatile io.grpc.MethodDescriptor getGetNameInfoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetNameInfo",
requestType = types.Rpc.Name.class,
responseType = types.Rpc.NameInfo.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetNameInfoMethod() {
io.grpc.MethodDescriptor getGetNameInfoMethod;
if ((getGetNameInfoMethod = AergoRPCServiceGrpc.getGetNameInfoMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetNameInfoMethod = AergoRPCServiceGrpc.getGetNameInfoMethod) == null) {
AergoRPCServiceGrpc.getGetNameInfoMethod = getGetNameInfoMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNameInfo"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.Name.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.NameInfo.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetNameInfo"))
.build();
}
}
}
return getGetNameInfoMethod;
}
private static volatile io.grpc.MethodDescriptor getListEventStreamMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListEventStream",
requestType = types.Blockchain.FilterInfo.class,
responseType = types.Blockchain.Event.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getListEventStreamMethod() {
io.grpc.MethodDescriptor getListEventStreamMethod;
if ((getListEventStreamMethod = AergoRPCServiceGrpc.getListEventStreamMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getListEventStreamMethod = AergoRPCServiceGrpc.getListEventStreamMethod) == null) {
AergoRPCServiceGrpc.getListEventStreamMethod = getListEventStreamMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEventStream"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.FilterInfo.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.Event.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ListEventStream"))
.build();
}
}
}
return getListEventStreamMethod;
}
private static volatile io.grpc.MethodDescriptor getListEventsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListEvents",
requestType = types.Blockchain.FilterInfo.class,
responseType = types.Rpc.EventList.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListEventsMethod() {
io.grpc.MethodDescriptor getListEventsMethod;
if ((getListEventsMethod = AergoRPCServiceGrpc.getListEventsMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getListEventsMethod = AergoRPCServiceGrpc.getListEventsMethod) == null) {
AergoRPCServiceGrpc.getListEventsMethod = getListEventsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEvents"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Blockchain.FilterInfo.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.EventList.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ListEvents"))
.build();
}
}
}
return getListEventsMethod;
}
private static volatile io.grpc.MethodDescriptor getGetServerInfoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetServerInfo",
requestType = types.Rpc.KeyParams.class,
responseType = types.Rpc.ServerInfo.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetServerInfoMethod() {
io.grpc.MethodDescriptor getGetServerInfoMethod;
if ((getGetServerInfoMethod = AergoRPCServiceGrpc.getGetServerInfoMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetServerInfoMethod = AergoRPCServiceGrpc.getGetServerInfoMethod) == null) {
AergoRPCServiceGrpc.getGetServerInfoMethod = getGetServerInfoMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServerInfo"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.KeyParams.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.ServerInfo.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetServerInfo"))
.build();
}
}
}
return getGetServerInfoMethod;
}
private static volatile io.grpc.MethodDescriptor getGetConsensusInfoMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetConsensusInfo",
requestType = types.Rpc.Empty.class,
responseType = types.Rpc.ConsensusInfo.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetConsensusInfoMethod() {
io.grpc.MethodDescriptor getGetConsensusInfoMethod;
if ((getGetConsensusInfoMethod = AergoRPCServiceGrpc.getGetConsensusInfoMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetConsensusInfoMethod = AergoRPCServiceGrpc.getGetConsensusInfoMethod) == null) {
AergoRPCServiceGrpc.getGetConsensusInfoMethod = getGetConsensusInfoMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConsensusInfo"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.ConsensusInfo.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetConsensusInfo"))
.build();
}
}
}
return getGetConsensusInfoMethod;
}
private static volatile io.grpc.MethodDescriptor getChangeMembershipMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ChangeMembership",
requestType = types.Raft.MembershipChange.class,
responseType = types.Raft.MembershipChangeReply.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getChangeMembershipMethod() {
io.grpc.MethodDescriptor getChangeMembershipMethod;
if ((getChangeMembershipMethod = AergoRPCServiceGrpc.getChangeMembershipMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getChangeMembershipMethod = AergoRPCServiceGrpc.getChangeMembershipMethod) == null) {
AergoRPCServiceGrpc.getChangeMembershipMethod = getChangeMembershipMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ChangeMembership"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Raft.MembershipChange.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Raft.MembershipChangeReply.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("ChangeMembership"))
.build();
}
}
}
return getChangeMembershipMethod;
}
private static volatile io.grpc.MethodDescriptor getGetEnterpriseConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetEnterpriseConfig",
requestType = types.Rpc.EnterpriseConfigKey.class,
responseType = types.Rpc.EnterpriseConfig.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetEnterpriseConfigMethod() {
io.grpc.MethodDescriptor getGetEnterpriseConfigMethod;
if ((getGetEnterpriseConfigMethod = AergoRPCServiceGrpc.getGetEnterpriseConfigMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetEnterpriseConfigMethod = AergoRPCServiceGrpc.getGetEnterpriseConfigMethod) == null) {
AergoRPCServiceGrpc.getGetEnterpriseConfigMethod = getGetEnterpriseConfigMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnterpriseConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.EnterpriseConfigKey.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.EnterpriseConfig.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetEnterpriseConfig"))
.build();
}
}
}
return getGetEnterpriseConfigMethod;
}
private static volatile io.grpc.MethodDescriptor getGetConfChangeProgressMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetConfChangeProgress",
requestType = types.Rpc.SingleBytes.class,
responseType = types.Raft.ConfChangeProgress.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetConfChangeProgressMethod() {
io.grpc.MethodDescriptor getGetConfChangeProgressMethod;
if ((getGetConfChangeProgressMethod = AergoRPCServiceGrpc.getGetConfChangeProgressMethod) == null) {
synchronized (AergoRPCServiceGrpc.class) {
if ((getGetConfChangeProgressMethod = AergoRPCServiceGrpc.getGetConfChangeProgressMethod) == null) {
AergoRPCServiceGrpc.getGetConfChangeProgressMethod = getGetConfChangeProgressMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfChangeProgress"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Rpc.SingleBytes.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
types.Raft.ConfChangeProgress.getDefaultInstance()))
.setSchemaDescriptor(new AergoRPCServiceMethodDescriptorSupplier("GetConfChangeProgress"))
.build();
}
}
}
return getGetConfChangeProgressMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AergoRPCServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AergoRPCServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AergoRPCServiceStub(channel, callOptions);
}
};
return AergoRPCServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AergoRPCServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AergoRPCServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AergoRPCServiceBlockingStub(channel, callOptions);
}
};
return AergoRPCServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AergoRPCServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AergoRPCServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AergoRPCServiceFutureStub(channel, callOptions);
}
};
return AergoRPCServiceFutureStub.newStub(factory, channel);
}
/**
*
**
* AergoRPCService is the main RPC service providing endpoints to interact
* with the node and blockchain. If not otherwise noted, methods are unary requests.
*
*/
public static abstract class AergoRPCServiceImplBase implements io.grpc.BindableService {
/**
*
* Returns the current state of this node
*
*/
public void nodeState(types.Rpc.NodeReq request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getNodeStateMethod(), responseObserver);
}
/**
*
* Returns node metrics according to request
*
*/
public void metric(types.Metric.MetricsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMetricMethod(), responseObserver);
}
/**
*
* Returns current blockchain status (best block's height and hash)
*
*/
public void blockchain(types.Rpc.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBlockchainMethod(), responseObserver);
}
/**
*
* Returns current blockchain's basic information
*
*/
public void getChainInfo(types.Rpc.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetChainInfoMethod(), responseObserver);
}
/**
*
* Returns current chain statistics
*
*/
public void chainStat(types.Rpc.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getChainStatMethod(), responseObserver);
}
/**
*
* Returns list of Blocks without body according to request
*
*/
public void listBlockHeaders(types.Rpc.ListParams request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBlockHeadersMethod(), responseObserver);
}
/**
*
* Returns list of block metadata (hash, header, and number of transactions) according to request
*
*/
public void listBlockMetadata(types.Rpc.ListParams request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBlockMetadataMethod(), responseObserver);
}
/**
*
* Returns a stream of new blocks as they get added to the blockchain
*
*/
public void listBlockStream(types.Rpc.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBlockStreamMethod(), responseObserver);
}
/**
*
* Returns a stream of new block's metadata as they get added to the blockchain
*
*/
public void listBlockMetadataStream(types.Rpc.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBlockMetadataStreamMethod(), responseObserver);
}
/**
*
* Return a single block incl. header and body, queried by hash or number
*
*/
public void getBlock(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockMethod(), responseObserver);
}
/**
*
* Return a single block's metdata (hash, header, and number of transactions), queried by hash or number
*
*/
public void getBlockMetadata(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockMetadataMethod(), responseObserver);
}
/**
*
* Return a single block's body, queried by hash or number and list parameters
*
*/
public void getBlockBody(types.Rpc.BlockBodyParams request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockBodyMethod(), responseObserver);
}
/**
*
* Return a single transaction, queried by transaction hash
*
*/
public void getTX(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTXMethod(), responseObserver);
}
/**
*
* Return information about transaction in block, queried by transaction hash
*
*/
public void getBlockTX(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBlockTXMethod(), responseObserver);
}
/**
*
* Return transaction receipt, queried by transaction hash
*
*/
public void getReceipt(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReceiptMethod(), responseObserver);
}
/**
*
* Return ABI stored at contract address
*
*/
public void getABI(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetABIMethod(), responseObserver);
}
/**
*
* Sign and send a transaction from an unlocked account
*
*/
public void sendTX(types.Blockchain.Tx request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendTXMethod(), responseObserver);
}
/**
*
* Sign transaction with unlocked account
*
*/
public void signTX(types.Blockchain.Tx request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSignTXMethod(), responseObserver);
}
/**
*
* Verify validity of transaction
*
*/
public void verifyTX(types.Blockchain.Tx request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyTXMethod(), responseObserver);
}
/**
*
* Commit a signed transaction
*
*/
public void commitTX(types.Blockchain.TxList request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCommitTXMethod(), responseObserver);
}
/**
*
* Return state of account
*
*/
public void getState(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStateMethod(), responseObserver);
}
/**
*
* Return state of account, including merkle proof
*
*/
public void getStateAndProof(types.Rpc.AccountAndRoot request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStateAndProofMethod(), responseObserver);
}
/**
*
* Create a new account in this node
*
*/
public void createAccount(types.Rpc.Personal request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAccountMethod(), responseObserver);
}
/**
*
* Return list of accounts in this node
*
*/
public void getAccounts(types.Rpc.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountsMethod(), responseObserver);
}
/**
*
* Lock account in this node
*
*/
public void lockAccount(types.Rpc.Personal request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLockAccountMethod(), responseObserver);
}
/**
*
* Unlock account in this node
*
*/
public void unlockAccount(types.Rpc.Personal request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUnlockAccountMethod(), responseObserver);
}
/**
*
* Import account to this node
*
*/
public void importAccount(types.Rpc.ImportFormat request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportAccountMethod(), responseObserver);
}
/**
*
* Export account stored in this node as wif format
*
*/
public void exportAccount(types.Rpc.Personal request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportAccountMethod(), responseObserver);
}
/**
*
* Export account stored in this node as keystore format
*
*/
public void exportAccountKeystore(types.Rpc.Personal request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportAccountKeystoreMethod(), responseObserver);
}
/**
*
* Query a contract method
*
*/
public void queryContract(types.Blockchain.Query request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryContractMethod(), responseObserver);
}
/**
*
* Query contract state
*
*/
public void queryContractState(types.Blockchain.StateQuery request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryContractStateMethod(), responseObserver);
}
/**
*
* Return list of peers of this node and their state
*
*/
public void getPeers(types.Rpc.PeersParams request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPeersMethod(), responseObserver);
}
/**
*
* Return result of vote
*
*/
public void getVotes(types.Rpc.VoteParams request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetVotesMethod(), responseObserver);
}
/**
*
* Return staking, voting info for account
*
*/
public void getAccountVotes(types.Rpc.AccountAddress request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountVotesMethod(), responseObserver);
}
/**
*
* Return staking information
*
*/
public void getStaking(types.Rpc.AccountAddress request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStakingMethod(), responseObserver);
}
/**
*
* Return name information
*
*/
public void getNameInfo(types.Rpc.Name request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNameInfoMethod(), responseObserver);
}
/**
*
* Returns a stream of event as they get added to the blockchain
*
*/
public void listEventStream(types.Blockchain.FilterInfo request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEventStreamMethod(), responseObserver);
}
/**
*
* Returns list of event
*
*/
public void listEvents(types.Blockchain.FilterInfo request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEventsMethod(), responseObserver);
}
/**
*
* Returns configs and statuses of server
*
*/
public void getServerInfo(types.Rpc.KeyParams request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServerInfoMethod(), responseObserver);
}
/**
*
* Returns status of consensus and bps
*
*/
public void getConsensusInfo(types.Rpc.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConsensusInfoMethod(), responseObserver);
}
/**
*
* Add & remove member of raft cluster
*
*/
public void changeMembership(types.Raft.MembershipChange request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getChangeMembershipMethod(), responseObserver);
}
/**
*
* Returns enterprise config
*
*/
public void getEnterpriseConfig(types.Rpc.EnterpriseConfigKey request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEnterpriseConfigMethod(), responseObserver);
}
/**
*
* Return a status of changeCluster enterprise tx, queried by requestID
*
*/
public void getConfChangeProgress(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfChangeProgressMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getNodeStateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.NodeReq,
types.Rpc.SingleBytes>(
this, METHODID_NODE_STATE)))
.addMethod(
getMetricMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Metric.MetricsRequest,
types.Metric.Metrics>(
this, METHODID_METRIC)))
.addMethod(
getBlockchainMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.Empty,
types.Rpc.BlockchainStatus>(
this, METHODID_BLOCKCHAIN)))
.addMethod(
getGetChainInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.Empty,
types.Rpc.ChainInfo>(
this, METHODID_GET_CHAIN_INFO)))
.addMethod(
getChainStatMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.Empty,
types.Rpc.ChainStats>(
this, METHODID_CHAIN_STAT)))
.addMethod(
getListBlockHeadersMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.ListParams,
types.Rpc.BlockHeaderList>(
this, METHODID_LIST_BLOCK_HEADERS)))
.addMethod(
getListBlockMetadataMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.ListParams,
types.Rpc.BlockMetadataList>(
this, METHODID_LIST_BLOCK_METADATA)))
.addMethod(
getListBlockStreamMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
types.Rpc.Empty,
types.Blockchain.Block>(
this, METHODID_LIST_BLOCK_STREAM)))
.addMethod(
getListBlockMetadataStreamMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
types.Rpc.Empty,
types.Rpc.BlockMetadata>(
this, METHODID_LIST_BLOCK_METADATA_STREAM)))
.addMethod(
getGetBlockMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.SingleBytes,
types.Blockchain.Block>(
this, METHODID_GET_BLOCK)))
.addMethod(
getGetBlockMetadataMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.SingleBytes,
types.Rpc.BlockMetadata>(
this, METHODID_GET_BLOCK_METADATA)))
.addMethod(
getGetBlockBodyMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.BlockBodyParams,
types.Rpc.BlockBodyPaged>(
this, METHODID_GET_BLOCK_BODY)))
.addMethod(
getGetTXMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.SingleBytes,
types.Blockchain.Tx>(
this, METHODID_GET_TX)))
.addMethod(
getGetBlockTXMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.SingleBytes,
types.Blockchain.TxInBlock>(
this, METHODID_GET_BLOCK_TX)))
.addMethod(
getGetReceiptMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.SingleBytes,
types.Blockchain.Receipt>(
this, METHODID_GET_RECEIPT)))
.addMethod(
getGetABIMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.SingleBytes,
types.Blockchain.ABI>(
this, METHODID_GET_ABI)))
.addMethod(
getSendTXMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Blockchain.Tx,
types.Rpc.CommitResult>(
this, METHODID_SEND_TX)))
.addMethod(
getSignTXMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Blockchain.Tx,
types.Blockchain.Tx>(
this, METHODID_SIGN_TX)))
.addMethod(
getVerifyTXMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Blockchain.Tx,
types.Rpc.VerifyResult>(
this, METHODID_VERIFY_TX)))
.addMethod(
getCommitTXMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Blockchain.TxList,
types.Rpc.CommitResultList>(
this, METHODID_COMMIT_TX)))
.addMethod(
getGetStateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.SingleBytes,
types.Blockchain.State>(
this, METHODID_GET_STATE)))
.addMethod(
getGetStateAndProofMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.AccountAndRoot,
types.Blockchain.AccountProof>(
this, METHODID_GET_STATE_AND_PROOF)))
.addMethod(
getCreateAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.Personal,
types.AccountOuterClass.Account>(
this, METHODID_CREATE_ACCOUNT)))
.addMethod(
getGetAccountsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.Empty,
types.AccountOuterClass.AccountList>(
this, METHODID_GET_ACCOUNTS)))
.addMethod(
getLockAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.Personal,
types.AccountOuterClass.Account>(
this, METHODID_LOCK_ACCOUNT)))
.addMethod(
getUnlockAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.Personal,
types.AccountOuterClass.Account>(
this, METHODID_UNLOCK_ACCOUNT)))
.addMethod(
getImportAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.ImportFormat,
types.AccountOuterClass.Account>(
this, METHODID_IMPORT_ACCOUNT)))
.addMethod(
getExportAccountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.Personal,
types.Rpc.SingleBytes>(
this, METHODID_EXPORT_ACCOUNT)))
.addMethod(
getExportAccountKeystoreMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.Personal,
types.Rpc.SingleBytes>(
this, METHODID_EXPORT_ACCOUNT_KEYSTORE)))
.addMethod(
getQueryContractMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Blockchain.Query,
types.Rpc.SingleBytes>(
this, METHODID_QUERY_CONTRACT)))
.addMethod(
getQueryContractStateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Blockchain.StateQuery,
types.Blockchain.StateQueryProof>(
this, METHODID_QUERY_CONTRACT_STATE)))
.addMethod(
getGetPeersMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.PeersParams,
types.Rpc.PeerList>(
this, METHODID_GET_PEERS)))
.addMethod(
getGetVotesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.VoteParams,
types.Rpc.VoteList>(
this, METHODID_GET_VOTES)))
.addMethod(
getGetAccountVotesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.AccountAddress,
types.Rpc.AccountVoteInfo>(
this, METHODID_GET_ACCOUNT_VOTES)))
.addMethod(
getGetStakingMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.AccountAddress,
types.Rpc.Staking>(
this, METHODID_GET_STAKING)))
.addMethod(
getGetNameInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.Name,
types.Rpc.NameInfo>(
this, METHODID_GET_NAME_INFO)))
.addMethod(
getListEventStreamMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
types.Blockchain.FilterInfo,
types.Blockchain.Event>(
this, METHODID_LIST_EVENT_STREAM)))
.addMethod(
getListEventsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Blockchain.FilterInfo,
types.Rpc.EventList>(
this, METHODID_LIST_EVENTS)))
.addMethod(
getGetServerInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.KeyParams,
types.Rpc.ServerInfo>(
this, METHODID_GET_SERVER_INFO)))
.addMethod(
getGetConsensusInfoMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.Empty,
types.Rpc.ConsensusInfo>(
this, METHODID_GET_CONSENSUS_INFO)))
.addMethod(
getChangeMembershipMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Raft.MembershipChange,
types.Raft.MembershipChangeReply>(
this, METHODID_CHANGE_MEMBERSHIP)))
.addMethod(
getGetEnterpriseConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.EnterpriseConfigKey,
types.Rpc.EnterpriseConfig>(
this, METHODID_GET_ENTERPRISE_CONFIG)))
.addMethod(
getGetConfChangeProgressMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
types.Rpc.SingleBytes,
types.Raft.ConfChangeProgress>(
this, METHODID_GET_CONF_CHANGE_PROGRESS)))
.build();
}
}
/**
*
**
* AergoRPCService is the main RPC service providing endpoints to interact
* with the node and blockchain. If not otherwise noted, methods are unary requests.
*
*/
public static final class AergoRPCServiceStub extends io.grpc.stub.AbstractAsyncStub {
private AergoRPCServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AergoRPCServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AergoRPCServiceStub(channel, callOptions);
}
/**
*
* Returns the current state of this node
*
*/
public void nodeState(types.Rpc.NodeReq request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getNodeStateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns node metrics according to request
*
*/
public void metric(types.Metric.MetricsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getMetricMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns current blockchain status (best block's height and hash)
*
*/
public void blockchain(types.Rpc.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getBlockchainMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns current blockchain's basic information
*
*/
public void getChainInfo(types.Rpc.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetChainInfoMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns current chain statistics
*
*/
public void chainStat(types.Rpc.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getChainStatMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns list of Blocks without body according to request
*
*/
public void listBlockHeaders(types.Rpc.ListParams request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListBlockHeadersMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns list of block metadata (hash, header, and number of transactions) according to request
*
*/
public void listBlockMetadata(types.Rpc.ListParams request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListBlockMetadataMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns a stream of new blocks as they get added to the blockchain
*
*/
public void listBlockStream(types.Rpc.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getListBlockStreamMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns a stream of new block's metadata as they get added to the blockchain
*
*/
public void listBlockMetadataStream(types.Rpc.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getListBlockMetadataStreamMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Return a single block incl. header and body, queried by hash or number
*
*/
public void getBlock(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBlockMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Return a single block's metdata (hash, header, and number of transactions), queried by hash or number
*
*/
public void getBlockMetadata(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBlockMetadataMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Return a single block's body, queried by hash or number and list parameters
*
*/
public void getBlockBody(types.Rpc.BlockBodyParams request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBlockBodyMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Return a single transaction, queried by transaction hash
*
*/
public void getTX(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetTXMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Return information about transaction in block, queried by transaction hash
*
*/
public void getBlockTX(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBlockTXMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Return transaction receipt, queried by transaction hash
*
*/
public void getReceipt(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetReceiptMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Return ABI stored at contract address
*
*/
public void getABI(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetABIMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Sign and send a transaction from an unlocked account
*
*/
public void sendTX(types.Blockchain.Tx request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSendTXMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Sign transaction with unlocked account
*
*/
public void signTX(types.Blockchain.Tx request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSignTXMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Verify validity of transaction
*
*/
public void verifyTX(types.Blockchain.Tx request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getVerifyTXMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Commit a signed transaction
*
*/
public void commitTX(types.Blockchain.TxList request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCommitTXMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Return state of account
*
*/
public void getState(types.Rpc.SingleBytes request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetStateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Return state of account, including merkle proof
*
*/
public void getStateAndProof(types.Rpc.AccountAndRoot request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetStateAndProofMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Create a new account in this node
*
*/
public void createAccount(types.Rpc.Personal request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateAccountMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Return list of accounts in this node
*
*/
public void getAccounts(types.Rpc.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetAccountsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lock account in this node
*
*/
public void lockAccount(types.Rpc.Personal request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getLockAccountMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Unlock account in this node
*
*/
public void unlockAccount(types.Rpc.Personal request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUnlockAccountMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Import account to this node
*
*/
public void importAccount(types.Rpc.ImportFormat request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getImportAccountMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Export account stored in this node as wif format
*
*/
public void exportAccount(types.Rpc.Personal request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getExportAccountMethod(), getCallOptions()), request, responseObserver);
}
/**
*