Search
# Net
# net_syncInfo
Return sync status of the node
Parameters:
none
Returns:
SyncInfo
from
:string
Sync start heightto
:string
Sync target heightcurrent
:string
Current snapshot chain heightstate
:uint
Sync state: 0 - not start, 1 - syncing, 2 - complete, 3 - error, 4 - cancelledstatus
:string
Sync state descriptionExample:
# net_syncDetail
synchron detail
Parameters:
none
Returns:
SyncDetail
from
:string
start heightto
:string
target heightcurrent
:string
current snapshot chain heightstatus
:string
synchron status descriptiontasks
:array
download tasksConnections
:array
network connections to download ledger chunksChunks
:array
downloaded ledger chunks have been verified, wait to insert into local chainCaches
:array
downloaded ledger chunks, but have not verified.
Example:
# net_nodeInfo
Return the detailed information of current Node, like peers.
Parameters:
none
Returns:
NodeInfo
id
:string
Node IDname
:string
Node name, configured inIdentity
field ofnode_config.json
netId
:int
The ID of Vite network connectedpeerCount
:int
Number of peers connectedpeers
:[]*PeerInfo
Information of peers connectedExample:
PeerInfo
name
:string
Peer's nameheight
:int
Current snapshot chain heightaddress
:string
Peer's ip addresscreateAt
:string
The time when this peer connected
# net_peers
the same with method net_nodeInfo