Get network data
Get data regarding the nodes of the network
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"
}
GET /api/v2/network/data
Request
Request
curl / cURL
curl -L -X GET 'https://api.n06.testnet.vega.xyz/api/v2/network/data' \
-H 'Accept: application/json'
python / requests
curl -L -X GET 'https://api.n06.testnet.vega.xyz/api/v2/network/data' \
-H 'Accept: application/json'
go / native
curl -L -X GET 'https://api.n06.testnet.vega.xyz/api/v2/network/data' \
-H 'Accept: application/json'
nodejs / axios
curl -L -X GET 'https://api.n06.testnet.vega.xyz/api/v2/network/data' \
-H 'Accept: application/json'