public class NetInfo extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
long |
currentBlock
current_block, current block height in the node's blockchain.
|
long |
highestBlock
highest_block, current highest block of the connected peers.
|
boolean |
listening
listening, whether the node is listening.
|
boolean |
mining
mining, whether the node is mining.
|
String |
netWorkID
network_id, network id.
|
int |
peerCount
peer_count, current count of connected peers.
|
boolean |
syncing
syncing, whether the node is syncing.
|
String |
version
version, bytom version.
|
| 构造器和说明 |
|---|
NetInfo() |
public boolean listening
public boolean syncing
public boolean mining
@SerializedName(value="peer_count") public int peerCount
@SerializedName(value="current_block") public long currentBlock
@SerializedName(value="highest_block") public long highestBlock
@SerializedName(value="network_id") public String netWorkID
@SerializedName(value="version") public String version
public static NetInfo getNetInfo(Client client) throws BytomException
BytomExceptionCopyright © 2018. All rights reserved.