Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class UtilServiceGrpc.UtilServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<UtilServiceGrpc.UtilServiceBlockingV2Stub>
io.grpc.stub.AbstractBlockingStub<UtilServiceGrpc.UtilServiceBlockingV2Stub>
com.hedera.hashgraph.sdk.proto.UtilServiceGrpc.UtilServiceBlockingV2Stub
- Enclosing class:
UtilServiceGrpc
public static final class UtilServiceGrpc.UtilServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<UtilServiceGrpc.UtilServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service UtilService.
The Utility Service provides a pseudo-random number generator. The single gRPC call defined for this service simply reports a single pseudo-random number in the transaction record. That value may either be a 32-bit integer within a requested range, or a 384-bit byte array. ### Block Stream Effects The requested value is reported exclusively in a `UtilPrngOutput` message.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionatomicBatch(Transaction request) Execute a batch of transactions atomically.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) prng(Transaction request) Generate a pseudo-random value.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected UtilServiceGrpc.UtilServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<UtilServiceGrpc.UtilServiceBlockingV2Stub>
-
prng
Generate a pseudo-random value. <p> The request body MUST be a [UtilPrngTransactionBody](#proto.UtilPrngTransactionBody)
- Throws:
io.grpc.StatusException
-
atomicBatch
Execute a batch of transactions atomically. <p> All transactions in the batch will be executed in order, and if any transaction fails, the entire batch will fail. // TODO: Add more details about the batch transaction
- Throws:
io.grpc.StatusException
-