mainbridge_nodeInfo
Returns bridge node information including the KNI (Kaia Network Identifier) of the node. A mainbridge node can connect to a subbrige node via the KNI.
JSONRPC: mainbridge_nodeInfo
Request
- application/json
Body
params array
Responses
- 200
Returns bridge node information including the KNI (Kaia Network Identifier) of the node.
- application/json
- Schema
- Example (from schema)
Schema
error
object
code int64required
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). |
message string
A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.
data string
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.).
result object
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
}
}
}
}
Loading...