public static final class ActiveContractsServiceGrpc.ActiveContractsServiceStub extends io.grpc.stub.AbstractAsyncStub<ActiveContractsServiceGrpc.ActiveContractsServiceStub>
Allows clients to initialize themselves according to a fairly recent state of the ledger without reading through all transactions that were committed since the ledger's creation.
Modifier and Type | Method and Description |
---|---|
protected ActiveContractsServiceGrpc.ActiveContractsServiceStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
getActiveContracts(ActiveContractsServiceOuterClass.GetActiveContractsRequest request,
io.grpc.stub.StreamObserver<ActiveContractsServiceOuterClass.GetActiveContractsResponse> responseObserver)
Returns a stream of the latest snapshot of active contracts.
|
protected ActiveContractsServiceGrpc.ActiveContractsServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<ActiveContractsServiceGrpc.ActiveContractsServiceStub>
public void getActiveContracts(ActiveContractsServiceOuterClass.GetActiveContractsRequest request, io.grpc.stub.StreamObserver<ActiveContractsServiceOuterClass.GetActiveContractsResponse> responseObserver)
Returns a stream of the latest snapshot of active contracts. If there are no active contracts, the stream returns a single GetActiveContractsResponse message with the offset at which the snapshot has been taken. Clients SHOULD use the offset in the last GetActiveContractsResponse message to continue streaming transactions with the transaction service. Clients SHOULD NOT assume that the set of active contracts they receive reflects the state at the ledger end. Errors: - ``UNAUTHENTICATED``: if the request does not include a valid access token - ``PERMISSION_DENIED``: if the claims in the token are insufficient to perform a given operation - ``NOT_FOUND``: if the request does not include a valid ledger id - ``INVALID_ARGUMENT``: if the payload is malformed or is missing required fields (filters by party cannot be empty)