GRPC Documentation - BlockValidationAPI
Table of Contents
blockvalidation_api.proto
BlockFoundRequest
swagger:model BlockFoundRequest
| Field | Type | Label | Description |
|---|---|---|---|
| hash | bytes | The hash of the found block | |
| base_url | string | Base URL where the block can be retrieved from | |
| wait_to_complete | bool | Whether to wait for the block processing to complete | |
| peer_id | string | P2P peer identifier for peerMetrics tracking |
EmptyMessage
Represents an empty request or response message. Used for endpoints that don't require input parameters or return data.
swagger:model EmptyMessage
HealthResponse
swagger:model HealthResponse
| Field | Type | Label | Description |
|---|---|---|---|
| ok | bool | Indicates if the service is healthy | |
| details | string | Additional health status details | |
| timestamp | google.protobuf.Timestamp | Timestamp when the health check was performed |
ProcessBlockRequest
swagger:model ProcessBlockRequest
| Field | Type | Label | Description |
|---|---|---|---|
| block | bytes | The block data to process | |
| height | uint32 | The height of the block in the blockchain | |
| base_url | string | Base URL where the block can be retrieved from | |
| peer_id | string | P2P peer identifier for peerMetrics tracking |
ValidateBlockRequest
swagger:model ValidateBlockRequest
| Field | Type | Label | Description |
|---|---|---|---|
| block | bytes | The block data to validate | |
| height | uint32 | The height of the block in the blockchain | |
| is_revalidation | bool | Indicates this is a revalidation of an invalid block |
ValidateBlockResponse
swagger:model ValidateBlockResponse
| Field | Type | Label | Description |
|---|---|---|---|
| ok | bool | Indicates if the block is valid | |
| message | string | Additional information about validation results |
BlockValidationAPI
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| HealthGRPC | EmptyMessage | HealthResponse | Returns the health status of the BlockValidation service. |
| BlockFound | BlockFoundRequest | EmptyMessage | Notifies the service that a new block has been found and requires validation. |
| ProcessBlock | ProcessBlockRequest | EmptyMessage | Processes a block to validate its content and structure. |
| ValidateBlock | ValidateBlockRequest | ValidateBlockResponse | Validates a block without processing it, returning validation results. |