package
Version:
v0.13.0-rc.1
Opens a new window with list of versions in this module.
Published: Apr 13, 2020
License: ISC
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Arguments struct {
Start uint64 `json:"Start,string"`
Count int `json:"count"`
}
Arguments - arguments for RPC
type BlockInfo struct {
Height uint64 `json:"height"`
Hash string `json:"hash"`
}
BlockInfo - the highest block held by the node
type Counters struct {
Pending int `json:"pending"`
Verified int `json:"verified"`
}
Counters - transaction counters
type InfoArguments struct{}
InfoArguments - empty arguments for info request
type InfoReply struct {
Chain string `json:"chain"`
Mode string `json:"mode"`
Block BlockInfo `json:"block"`
Miner MinerInfo `json:"miner"`
RPCs uint64 `json:"rpcs"`
Peers uint64 `json:"peers"`
TransactionCounters Counters `json:"transactionCounters"`
Difficulty float64 `json:"difficulty"`
Hashrate float64 `json:"hashrate"`
Version string `json:"Version"`
Uptime string `json:"uptime"`
PublicKey string `json:"publicKey"`
}
InfoReply - results from info request
type MinerInfo struct {
Success uint64 `json:"success"`
Failed uint64 `json:"failed"`
}
MinerInfo - miner info, include success / failed mined block count
Node - type for RPC calls
Info - return some information about this node
only enough for clients to determine node state
for more detail information use HTTP GET requests
List - list all node offering RPC functionality
type Reply struct {
Nodes []rpc.Entry `json:"nodes"`
NextStart uint64 `json:"nextStart,string"`
}
Reply - result from RPC
Source Files
¶
Click to show internal directories.
Click to hide internal directories.