Validate proposed block
Validate a proposed Stacks block.
POST
/v2/block_proposal
Validate a proposed Stacks block
Used by stackers to validate a proposed Stacks block from a miner.
This API endpoint requires a basic Authorization header.
Request Body (Optional)
block
Requiredstring
chain_id
Requiredinteger
Status code | Description |
---|---|
| Block proposal has been accepted for processing. The result will be returned via the event observer. |
| Request not over loopback interface |
| There is an ongoing proposal validation being processed, the new request cannot be accepted until the prior request has been processed. |
Terminal
$curl -X POST "http://localhost:20443/v2/block_proposal" \-d '{
{"message": "string","result": "string"}