List all network history segments
GEThttps://api.n00.testnet.vega.rocks/api/v2/networkhistory/segments
Get a list of all history segments stored by the data node currently connected to
Request
Responses
- 200
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
segments object[]
{
"segments": [
{
"chainId": "string",
"databaseVersion": "string",
"fromHeight": "string",
"historySegmentId": "string",
"previousHistorySegmentId": "string",
"toHeight": "string"
}
]
}
An internal server error
- application/json
- Schema
- Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
- curl
- python
- go
- nodejs
- CURL
curl -L -X GET 'https://api.n00.testnet.vega.rocks/api/v2/networkhistory/segments' \
-H 'Accept: application/json'
ResponseClear