admin_nodeInfo
The nodeInfo administrative property can be queried for all the information known about the running Klaytn node at the networking granularity. These include general information about the node itself as a participant of the devp2p P2P overlay protocol, as well as specialized information added by each of the running application protocols, e.g., klay.
JSONRPC: admin_nodeInfo
Request
- application/json
Body
Default value: admin_nodeInfo
Method name
Default value: 1
Request ID, Random or Auto incrementation
Default value: 2.0
JSON-RPC Version (2.0)
Responses
- 200
The node information.
- application/json
- Schema
- Example (from schema)
Schema
Default value: 2.0
error
object
A Number that indicates the error type that occurred. This MUST be an integer.
| code | message | description | |-----|-----|-------| | -32700 | Parse error | invalid JSON was received by the server. An error occurred on the server while parsing the JSON text. | |-32602 | Invalid params | Invalid method parameter(s). |
A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.
A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.).
The node information.
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": {
"id": "377ef808aff73a397d133b3bf160df586054c98c0e6a65c8fce9560e6a0632bc975419f461803d27f28ee270287113cc2359225814debc1bfb2f811061e14c5d",
"name": "Klaytn/vvX.X.X/XXXX-XXXX/goX.X.X",
"kni": "kni://377ef808aff73a397d133b3bf160df586054c98c0e6a65c8fce9560e6a0632bc975419f461803d27f28ee270287113cc2359225814debc1bfb2f811061e14c5d@[::]:32323?discport=0",
"ip": "::",
"ports": {
"discovery": 0,
"listener": 32323
},
"listenAddr": "[::]:32323",
"protocols": {
"istanbul": {
"network": 1000,
"difficulty": 1,
"genesis": "0x06806bd8b1e086dfb7098a289da07037a3af58e793d205d20f61c88eeea9351d",
"config": {
"chainId": 1000,
"istanbul": {
"epoch": 30000,
"policy": 0,
"sub": 7
},
"isBFT": true,
"unitPrice": 25000000000,
"deriveShaImpl": 0
},
"head": "0x06806bd8b1e086dfb7098a289da07037a3af58e793d205d20f61c88eeea9351d"
}
}
}
}