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 |
EmptyMessage
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 |
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 |
ValidateBlockResponse
swagger:model ValidateBlockResponse
Field | Type | Label | Description |
---|---|---|---|
ok | bool | Indicates if the block is valid | |
message | string | Additional information about validation results |
SetMinedMultiResponse
swagger:model SetMinedMultiResponse
Field | Type | Label | Description |
---|---|---|---|
ok | bool |
SetTxMetaRequest
swagger:model SetTxMetaRequest
Field | Type | Label | Description |
---|---|---|---|
data | bytes | repeated |
SetTxMetaResponse
swagger:model SetTxMetaResponse
Field | Type | Label | Description |
---|---|---|---|
ok | bool |
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. |