Validate a proof.
POST/api/poi/v1/validate
Validate a proof.
Request
- application/json
Body
required
- ProofHashLeaf
- ProofValueLeaf
- ProofHashLeaf
- ProofValueLeaf
milestone object
Milestone payload in JSON representation. See Core API.
block object
Block in JSON representation. See Core API.
proof ProofNode
A node in the merkle tree.
l object
oneOf
h string
value string
r object
oneOf
h string
value string
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
code stringrequired
The application error code.
message stringrequired
The error reason.
{
"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
code stringrequired
The application error code.
message stringrequired
The error reason.
{
"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
code stringrequired
The application error code.
message stringrequired
The error reason.
{
"error": {
"code": 500,
"message": "internal server error"
}
}
Loading...