Get network data
GEThttps://api.n00.testnet.vega.rocks/api/v2/network/data
Get data regarding the nodes of the network
Request
Responses
- 200
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
nodeData object
{
"nodeData": {
"ersatzNodes": {
"demoted": [
"string"
],
"inactive": 0,
"maximum": 0,
"promoted": [
"string"
],
"total": 0
},
"inactiveNodes": 0,
"pendingNodes": {
"demoted": [
"string"
],
"inactive": 0,
"maximum": 0,
"promoted": [
"string"
],
"total": 0
},
"stakedTotal": "string",
"tendermintNodes": {
"demoted": [
"string"
],
"inactive": 0,
"maximum": 0,
"promoted": [
"string"
],
"total": 0
},
"totalNodes": 0,
"uptime": 0
}
}
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/network/data' \
-H 'Accept: application/json'
ResponseClear