public class NetSdk extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
Boolean |
addPeer(AddPeerInput input)
Attempts to add a node to the connected network nodes wa:/api/net/peer.
|
NetworkInfoOutput |
getNetworkInfo()
Get information about the node’s connection to the network. wa:/api/net/networkInfo
|
List<PeerDto> |
getPeers(Boolean withMetrics)
Gets information about the peer nodes of the current node.Optional whether to include metrics.
|
Boolean |
removePeer(String address)
Attempts to remove a node from the connected network nodes wa:/api/net/peer.
|
public Boolean addPeer(AddPeerInput input) throws Exception
Exceptionpublic Boolean removePeer(String address) throws Exception
Exceptionpublic List<PeerDto> getPeers(Boolean withMetrics) throws Exception
Exceptionpublic NetworkInfoOutput getNetworkInfo() throws Exception
ExceptionCopyright © 2020. All rights reserved.