Get desktop application:
View/edit binary Protocol Buffers messages
The RequestService allows the caller to submit requests to the blockchain network, and receive the result of the request in a synchronous response. You can use the EventService below for asynchronously consuming the events of submitted requests.
Send a single request via the Concord Client to the blockchain network. Errors: DEADLINE_EXCEEDED: if the request couldn't be processed before the given timeout expired. INVALID_ARGUMENT: if a required field is not set. RESOURCE_EXHAUSTED: if Concord Client is overloaded. The caller should retry with a backoff. UNAVAILABLE: if Concord Client is currently unable to process any requests. The caller should retry with a backoff. ABORTED: if Concord has a contention between concurrently running requests or if execution engine has rejected requests. The caller should retry. INTERNAL: if Concord Client cannot progress independent of the request.
Required application request which gets evaluated by the execution engine.
Required timeout which defines the maximum amount of time the caller is willing to wait for the request to be processed by a quorum of replicas. Returns DEADLINE_EXCEEDED if the request times out. Returns INVALID_ARGUMENT if the timeout is zero.
Optional flag to mark the request as read-only. A read-only request doesn't go through consensus. Concord Client makes sure it receives matching replies from a quorum of replicas. `read_only` and `pre_execute` are mutually exclusive. INVALID_ARGUMENT if read_only and pre_execute are set.
Optional flag to enable request pre-execution. Pre-execution evaluates the request before consensus as opposed to after. If pre-execution is successful and no conflicts are detected during the execution phase then consensus will speed up for all requests in the system. `read_only` and `pre_execute` are mutually exclusive. INVALID_ARGUMENT if `read_only` and `pre_execute` are set.
Optional request identifier. At runtime, Concord Client maps the `correlation_id` to a sequence number which can be used to track the request in log messages in the blockchain network.
Optional flag to mark the request as primary-only. A primary-only request is a read-only request intended to be served by primary validator node only and this request is ignored by other non-primary validator nodes. Concord Client acknowledges replies from primary node only.
Application data returned by the execution engine.
Error messages corresponding to the error returned by request service.
Invalid request if required field is not set.
Concord is unavailable.
Request couldn't be processed before the given timeout expired.
Execution data is too large.
Execution data is empty.
Concord has a contention between concurrently running requests.
Clients are occupied.
Execution Engine rejected request.
Internal error.
Used in: