Search
# Util and Dashboard API
To enable Util and (or) Dashboard RPC API on the node, add "util" and (or) "dashboard" namespace in "PublicModules" in node_config.json
# util_getPoWNonce
Calculate PoW nonce according to difficulty. See here for more information.
- Parameters:
difficulty
:bigint string
PoW difficultyhash
:hash
32 byte hash
For example, if address is "vite_ab24ef68b84e642c0ddca06beec81c9acb1977bbd7da27a87a", previousHash is "0000000000000000000000000000000000000000000000000000000000000000", then the hash is "8689fc3e7d0bcad0a1213fd90ab53437ce745408750f7303a16c75bad28da8c3"
Returns:
base64
: nonce
Example:
# dashboard_processInfo
Get go-vite information
Parameters:
id
:string
Optional request id
Returns:
reqId
:string
Request idbuild_version
:string
Go-vite versioncommit_version
:string
Go-vite commit idnodeName
:string
Node namerewardAddress
:string
If the node has registered for full node reward program, this field is the address to receive rewards, otherwise returns an empty string.pid
:int
Go-vite process id
Example:
# dashboard_runtimeInfo
Get go-vite runtime information
Parameters:
id
:string
Optional request id
Returns:
reqId
:string
Request idpeersNum
:int
Number of connected peerssnapshotPendingNum
:uint64 string
Number of snapshot blocks in mempoolaccountPendingNum
:bigint string
Number of account blocks in mempoollatestSnapshot
:hashHeightTime
Hash
:string
Current snapshot block hashHeight
:uint64
Current snapshot block heightTime
:int64
Current snapshot block timestamp. In milliseconds.
updateTime
:int64
Node's time. In milliseconds.delayTime
:Array<int>
Block Propagate Latency. Seenet_nodeInfo
for detailsproducer
:address
Block creation address if the node is SBP. OptionalsignData
:hex
64 byte signature of the current snapshot block hash signed by node's PeerKey
Example:
# dashboard_osInfo
Get node's operating system information
Parameters:
id
:string
Optional request id
Returns:
reqId
:string
Request idos
:string
Node's operating systemplatform
:string
Operating system platformplatformFamily
:string
Operating system familyplatformVersion
:string
Operating system versionkernelVersion
:string
Operating system kernel versionmemTotal
:uint64
Total memory. In bytesmemFree
:uint64
Free memory. In bytescpuNum
:int
Number of CPU coresgorountine
:int
Number of Go routines
Example:
# dashboard_netId
Get network id
Parameters: none
Returns:
string
Vite Network id. 1 is the mainnet.
Example: