Returns the children of a block.
GEThttp://127.0.0.1:8000/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
{
"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
{
"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
{
"error": {
"code": 500,
"message": "internal server error"
}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'http://127.0.0.1:8000/api/explorer/v2/blocks/:blockId/children' \
-H 'Accept: application/json'
ResponseClear