Returns general information about the node.
GET/api/v1/info
Returns general information about the node.
Request
Responses
- 200
- 403
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- default
Schema
data objectrequired
The name of the node.
The semantic version of the node.
Tells whether the node is healthy or not.
Tells on which network the nodes operates on.
Tells whether the node supports mainnet or testnet addresses. Value iota
indicates that the node supports mainnet addresses. Value atoi
indicates that the node supports testnet addresses.
The Proof-of-Work difficulty for a message to be sent over the network to mitigate spam.
The current rate of new messages per second.
The current rate of referenced messages per second.
The ratio of referenced messages in relation to new messages of the last confirmed milestone.
The timestamp of the latest seen milestone.
The most recent milestone known to the node.
The most recent milestone that has been confirmed by the node.
Tells from which starting point the node holds data.
The features that are supported by the node. For example, a node could support the Proof-of-Work (PoW) feature, which would allow the PoW to be performed by the node itself.
{
"data": {
"name": "string",
"version": "string",
"isHealthy": true,
"networkId": "string",
"bech32HRP": "string",
"minPoWScore": 0,
"messagesPerSecond": 0,
"referencedMessagesPerSecond": 0,
"referencedRate": 0,
"latestMilestoneTimestamp": 0,
"latestMilestoneIndex": 0,
"confirmedMilestoneIndex": 0,
"pruningIndex": 0,
"features": [
"string"
]
}
}
{
"data": {
"name": "HORNET",
"version": "0.6.0-alpha",
"isHealthy": true,
"networkId": "testnet7",
"bech32HRP": "atoi",
"minPoWScore": 4000,
"messagesPerSecond": 17,
"referencedMessagesPerSecond": 16.8,
"referencedRate": 98.82352941176471,
"latestMilestoneTimestamp": 1617802102,
"latestMilestoneIndex": 480,
"confirmedMilestoneIndex": 480,
"pruningIndex": 0,
"features": [
"PoW"
]
}
}
Unsuccessful operation: indicates that the endpoint is not available for public use.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 403,
"message": "not available for public use"
}
}
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
The application error code.
The error reason.
{
"error": {
"code": 500,
"message": "internal server error"
}
}