node kind RPC (#5025)

* node kind RPC

* JS interface for parity_nodeKind
This commit is contained in:
Robert Habermeier
2017-03-27 17:30:19 +02:00
committed by Gav Wood
parent a12583f762
commit 62158601fb
10 changed files with 172 additions and 2 deletions

View File

@@ -419,6 +419,30 @@ export default {
}
},
nodeKind: {
section: SECTION_NODE,
desc: 'Returns the node type availability and capability',
params: [],
returns: {
type: Object,
desc: 'Availability and Capability.',
details: {
availability: {
type: String,
desc: 'Availability, either `personal` or `public`.'
},
capability: {
type: String,
desc: 'Capability, either `full` or `light`.'
}
}
},
example: {
availability: 'personal',
capability: 'light'
}
},
netChain: {
section: SECTION_NET,
desc: 'Returns the name of the connected chain.',