List nodes
GET/api/v2/nodes
Get a list of the nodes on the network along with the related information.
Request
Query Parameters
Return the node list for the given epoch. If not set, the node list for the current epoch will be returned.
Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.
If paging forwards, the cursor string for the last row of the previous page.
Number of records to be returned that sort less than row identified by cursor supplied in 'before'.
If paging forwards, the cursor string for the first row of the previous page.
Whether to order the results with the newest records first. If not set, the default value is true.
Responses
- 200
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
nodes object
Page of node data and corresponding page information.
edges object[]
Page of node data and their corresponding cursors.
Cursor that can be used to fetch further pages.
node object
Data specific to a single node on the Vega network.
Avatar url.
delegations object[]
Node's delegations.
Amount delegated. This field is an unsigned integer scaled to the asset's decimal places.
Epoch of delegation.
Node ID to delegate to.
Party which is delegating.
epochData object
Information about epoch.
Total number of offline epochs since node was created.
Total number of online epochs since node was created.
Total number of epochs since node was created.
Ethereum public key of the node.
Node ID i.e. the node's wallet ID.
URL where users can find out more information on the node.
Country code for the location of the node.
Max amount of (wanted) stake. This field is an unsigned integer scaled to the asset's decimal places.
Node name.
Amount of stake on the next epoch. This field is an unsigned integer scaled to the asset's decimal places.
Public key of the node operator.
rankingScore object
Node ranking information.
Performance based score.
Possible values: [VALIDATOR_NODE_STATUS_UNSPECIFIED
, VALIDATOR_NODE_STATUS_TENDERMINT
, VALIDATOR_NODE_STATUS_ERSATZ
, VALIDATOR_NODE_STATUS_PENDING
]
Default value: VALIDATOR_NODE_STATUS_UNSPECIFIED
Status of the validator in the previous epoch.
Final score.
Stake based score - no anti-whaling.
Possible values: [VALIDATOR_NODE_STATUS_UNSPECIFIED
, VALIDATOR_NODE_STATUS_TENDERMINT
, VALIDATOR_NODE_STATUS_ERSATZ
, VALIDATOR_NODE_STATUS_PENDING
]
Default value: VALIDATOR_NODE_STATUS_UNSPECIFIED
Status of the validator in the current epoch.
Tendermint voting power of the validator.
rewardScore object
Node reward score.
Multisig score.
Normalised validator score for rewards.
Performance based score.
Stake based score - with anti-whaling.
Un-normalised score.
Possible values: [VALIDATOR_NODE_STATUS_UNSPECIFIED
, VALIDATOR_NODE_STATUS_TENDERMINT
, VALIDATOR_NODE_STATUS_ERSATZ
, VALIDATOR_NODE_STATUS_PENDING
]
Default value: VALIDATOR_NODE_STATUS_UNSPECIFIED
Status of the validator for reward.
Amount of stake that has been delegated by token holders. This field is an unsigned integer scaled to the asset's decimal places.
Amount the node operator has put up themselves. This field is an unsigned integer scaled to the asset's decimal places.
Total amount staked on node. This field is an unsigned integer scaled to the asset's decimal places.
Possible values: [NODE_STATUS_UNSPECIFIED
, NODE_STATUS_VALIDATOR
, NODE_STATUS_NON_VALIDATOR
]
Default value: NODE_STATUS_UNSPECIFIED
Node status.
Public key of Tendermint.
pageInfo object
Page information that is used for fetching further pages.
End cursor.
Indicator if there is a next page.
Indicator if there is a previous page.
Start cursor.
{
"nodes": {
"edges": [
{
"cursor": "string",
"node": {
"avatarUrl": "string",
"delegations": [
{
"amount": "string",
"epochSeq": "string",
"nodeId": "string",
"party": "string"
}
],
"epochData": {
"offline": 0,
"online": 0,
"total": 0
},
"ethereumAddress": "string",
"id": "string",
"infoUrl": "string",
"location": "string",
"maxIntendedStake": "string",
"name": "string",
"pendingStake": "string",
"pubKey": "string",
"rankingScore": {
"performanceScore": "string",
"previousStatus": "VALIDATOR_NODE_STATUS_UNSPECIFIED",
"rankingScore": "string",
"stakeScore": "string",
"status": "VALIDATOR_NODE_STATUS_UNSPECIFIED",
"votingPower": 0
},
"rewardScore": {
"multisigScore": "string",
"normalisedScore": "string",
"performanceScore": "string",
"rawValidatorScore": "string",
"validatorScore": "string",
"validatorStatus": "VALIDATOR_NODE_STATUS_UNSPECIFIED"
},
"stakedByDelegates": "string",
"stakedByOperator": "string",
"stakedTotal": "string",
"status": "NODE_STATUS_UNSPECIFIED",
"tmPubKey": "string"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
}
}
}
An internal server error
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}