Returns the children of a block.
GET/api/explorer/v2/blocks/:blockId/children
Returns the children of a given block in the Tangle.
Request
Path Parameters
blockId stringrequired
Identifier of the block.
Example: 0xf532a53545103276b46876c473846d98648ee418468bce76df4868648dd73e5d
Responses
- 200
- 400
- 404
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
Schema
blockId string
The block id of the parent.
maxResults integer
The maximum number of results.
count integer
The total number of children.
children string[]
A list of block ids.
{
"blockId": "string",
"maxResults": 0,
"count": 0,
"children": [
"string"
]
}
Unsuccessful operation: indicates that the provided parameters are 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 requested data was not found.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
code stringrequired
The application error code.
message stringrequired
The error reason.
{
"error": {
"code": 404,
"message": "could not find data"
}
}
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...