Validate a proof.
POSThttp://127.0.0.1:14265/api/poi/v1/validate
Validate a proof.
Request
- application/json
Body
required
milestone object
Milestone payload in JSON representation. See Core API.
block object
Block in JSON representation. See Core API.
proof ProofNode
Responses
- 200
- 400
- 403
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- default
Schema
valid boolean
{
"valid": true
}
{
"valid": true
}
Unsuccessful operation: indicates that the provided data is invalid.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 400,
"message": "invalid data provided"
}
}
Unsuccessful operation: indicates that the endpoint is not available for public use.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 403,
"message": "not available for public use"
}
}
Unsuccessful operation: indicates that an unexpected, internal server error happened which prevented the node from fulfilling the request.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 500,
"message": "internal server error"
}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'http://127.0.0.1:14265/api/poi/v1/validate' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"milestone": {},
"block": {},
"proof": {}
}'
ResponseClear