Add system_{localPeerId, localListenAddresses} RPCs (#2185)

* Add system_{localPeerId, localListenAddresses} RPCs

* CHANGELOG
This commit is contained in:
Jaco Greeff
2020-04-16 16:21:40 +02:00
committed by GitHub
parent 1968c878f5
commit 00490116dd
3 changed files with 19 additions and 0 deletions
@@ -39,6 +39,16 @@ export default {
params: [],
type: 'Health'
},
localPeerId: {
description: 'Returns the base58-encoded PeerId of the node',
params: [],
type: 'Text'
},
localListenAddresses: {
description: 'The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example',
params: [],
type: 'Vec<Text>'
},
peers: {
description: 'Returns the currently connected peers',
params: [],