subbridge_nodeInfo
Returns bridge node information including the KNI (Klaytn Network Identifier) of the node. A subbridge node can connect to a mainbridge node via the KNI.
JSONRPC: subbridge_nodeInfo
Request
- application/json
Body
Default value: subbridge_nodeInfo
Method name
Default value: 1
Request ID, Random or Auto incrementation
Default value: 2.0
JSON-RPC Version (2.0)
Responses
- 200
the bridge 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 bridge node information.
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": {
"kni": "kni://f8a1f0cd1e2bebeece571e4fda16e215218fd4b9bc2eddd924f7cd5b5f950fcec8f4b8cd3851390d1d0bacf1b15e1c4a38c882252e429a28d16eeb6edbacd726@[::]:50505?discport=0",
"id": "f8a1f0cd1e2bebeece571e4fda16e215218fd4b9bc2eddd924f7cd5b5f950fcec8f4b8cd3851390d1d0bacf1b15e1c4a38c882252e429a28d16eeb6edbacd726",
"ip": "::",
"listenAddr": "[::]:50505",
"name": "-2",
"ports": {
"discovery": 0,
"listener": 50505
},
"protocols": {
"servicechain": {
"config": {
"chainId": 2018,
"deriveShaImpl": 0,
"isBFT": true,
"istanbul": {
"...": null
},
"unitPrice": 0
},
"difficulty": 87860,
"genesis": "0x711ce9865492659977abb2758d29f68c2b0c82862d9376f25953579f64f95b58",
"head": "0x0d4b130731f1e7560e4531ac73d55ac8c6daccb178abd86af0d96b7aafded7c5",
"network": 1
}
}
}
}