GRPC Documentation - SubtreeValidationAPI
Table of Contents
subtreevalidation_api.proto
SubtreeValidationAPI provides gRPC services for validating blockchain subtrees. The service exposes endpoints for health monitoring and subtree validation operations.
CheckBlockSubtreesRequest
Defines the input parameters for checking subtrees in a block.
swagger:model CheckBlockSubtreesRequest
Field | Type | Label | Description |
---|---|---|---|
block | bytes | Block containing the subtrees to be checked | |
base_url | string | Endpoint for retrieving missing transaction data |
CheckBlockSubtreesResponse
Contains the validation results for subtrees in a block.
swagger:model CheckBlockSubtreesResponse
Field | Type | Label | Description |
---|---|---|---|
blessed | bool | Indicates if all subtrees in the block pass validation |
CheckSubtreeFromBlockRequest
Defines the input parameters for subtree validation.
swagger:model CheckSubtreeFromBlockRequest
Field | Type | Label | Description |
---|---|---|---|
hash | bytes | Merkle root hash of the subtree requiring validation | |
base_url | string | Endpoint for retrieving missing transaction data | |
block_height | uint32 | Blockchain height where the subtree is located | |
block_hash | bytes | Uniquely identifies the block containing the subtree | |
previous_block_hash | bytes | Identifies the block preceding the current block |
CheckSubtreeFromBlockResponse
Contains the validation result for a subtree check.
swagger:model CheckSubtreeFromBlockResponse
Field | Type | Label | Description |
---|---|---|---|
blessed | bool | Indicates if the subtree passes all validation criteria |
EmptyMessage
Represents an empty message structure used for health check requests.
swagger:model EmptyMessage
HealthResponse
Encapsulates the service health status information.
swagger:model HealthResponse
Field | Type | Label | Description |
---|---|---|---|
ok | bool | Indicates if the service is operating normally | |
details | string | Provides additional context about the service health status | |
timestamp | google.protobuf.Timestamp | Records when the health check was performed |
SubtreeValidationAPI
Provides gRPC services for validating blockchain subtrees. The service exposes endpoints for health monitoring and subtree validation operations.
Method Name | Request Type | Response Type | Description |
---|---|---|---|
HealthGRPC | EmptyMessage | HealthResponse | Checks the service's health status. It takes an empty request message and returns a response indicating the service's health. |
CheckSubtreeFromBlock | CheckSubtreeFromBlockRequest | CheckSubtreeFromBlockResponse | Validates a subtree within a specified block in the blockchain. It takes a request containing the subtree's merkle root hash and block details, returning a response indicating the subtree's validity status. |
CheckBlockSubtrees | CheckBlockSubtreesRequest | CheckBlockSubtreesResponse | Validates all subtrees within a block. Takes a request containing the block data and returns validation results for all subtrees. |